在表单上检测到动作 [英] Action Detected on forms

查看:70
本文介绍了在表单上检测到动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个winform应用程序.

我担心的是,如果屏幕上没有任何动作或没有完成任何事件,我想应用一个计时器,该计时器将在几秒钟后显示图像.

如何检测到没有执行任何操作?

在此先感谢.

I have a winform application.

My concern is that if there is no action or no events done on the screen I want to apply a timer which, after few seconds, will display an image.

How can I detect that there is no action done?

Thanks in advance.

推荐答案

使用GetLastInputInfo()方法

此处 [此处 [在这里 [
Use the GetLastInputInfo() method

Here[^] is an archive item.

Here[^] is another.

And Here[^] is am SO thread.


这篇关于在表单上检测到动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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