确定是否已输入或退出应用程序

确定是否已输入或退出应用程序

本文介绍了确定是否已输入或退出应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的妹妹因将电脑中的游戏光盘留在电脑上而臭名昭着。

我想创建一个应用程序来检测她何时进入游戏,然后检测你何时退出游戏。当你退出它时,我希望它显示一个带有提醒的消息框。


如何让我的程序检测她何时进入然后退出游戏?

My sister is notorious at leaving game CD-ROMs in the computer.
I want to create an application that detects when she enters the game, then detects when you exit it. When you exit it, I want it toshow a message box with a reminder.

How do I get my programme to detect when she enters and then exits the game?

推荐答案




这将是一个TSR(终止和驻留)程序,它使用点击和空格在内存中保持在后台运行。通常,计算机游戏会占用整个环境,然后在退出时恢复它。我认为特别是在vb中工作可能会非常棘手。为什么每次她记得取出DVD时都不给她买一块糖果?

This would be a TSR (terminate and stay resident) program which remains running in the background in memory using up clicks and space. Usually computer games take over the entire environment and then restore it when exited. I think it might be extremely tricky to get this working especially in vb. Why don''t you buy her a piece of candy every time she remembers to remove the dvd?




聪明的举动。 :)横向思维的好例子,那就是。


至于剩下的,这真的取决于它是否是一款支持Window的游戏,不是吗?我的猜测是,大多数是,这些天。已经有一段时间了,因为我看到一个必须重启到DOS模式才能运行。

Smart move. :) Good example of lateral thinking, that.

As for the rest, that would really depend on whether it''s a Window-aware game, wouldn''t it? My guess is that most are, these days. It has been some time since I saw one that had to reboot to DOS mode to run.


这篇关于确定是否已输入或退出应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:41