确定是否已输入或退出应用程序 [英] Determining whether an application has been entered or exited

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

问题描述

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

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


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

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?

推荐答案

尝试搜索(请参阅右上角的搜索框)以获取有关枚举执行过程打开窗口的信息。当你看到一个特定的进程或窗口出现时,你应该可以设置一个标志,然后在它消失时显示一个弹出窗口。
Try searching (see the search box at top-right) for information about enumerating executing processes, or open windows. You should be able to set a flag when you see a particular process or window appear, then show a popup when it disappears.



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

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


如何让我的程序检测她何时进入并退出游戏?
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?



这将是一个TSR(终止并保持驻留)使用点击和空间在内存中保持运行的程序。通常,计算机游戏会占用整个环境,并在退出时恢复它。我认为特别是在vb中工作可能会非常棘手。 为什么每次她记得取出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.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆