活动窗口更改事件 [英] Active window change event
本文介绍了活动窗口更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要编写一个应用程序,其中每当Windows机器上的活动窗口发生变化时,我都需要知道.我不想为此使用连续循环.我需要一些活动才能订阅以完成工作.
为了更清楚:当我说活动窗口更改时,是指用户切换窗口e.q.时.从IE到Windows资源管理器,再到记事本到Outlook等.
Rashmi
Hi,
I need to write an app wherein I need to know everytime the active window changes on a Windows machine. I don''t want to use a continuous loop for this. I need some event I can subscribe to do the job.
For more clarity: When I say active window changes I mean when user switches windows e.q. going from IE to Windows explorer to Notepad to Outlook etc.
Rashmi
推荐答案
AFAIK,唯一的方法是编写一个CBTProc挂钩.可以在此处> ^ ].您还需要阅读 ^ ].
AFAIK, the only way to do that would be to write up a CBTProc hook. Documentation on it can be found here[^]. You''ll also need to read up on these[^].
您说的更改是什么意思?
What''s meaning of changes you said?
这篇关于活动窗口更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文