问题描述
大家好,
我正在开发一种简单的输入方法,要求是:当其他应用程序中的某个输入框出现时,我的输入应用程序应该显示出来,而输入隐藏后就隐藏了.
现在,我设置了一个计时器来检测何时应该显示我的窗口,因此我需要检测其他应用程序的输入框窗口句柄,如果它是有效的句柄,那么我将显示我的输入法.但不幸的是,我不知道该怎么办.有人可以帮助我吗?非常感谢.
我尝试使用GetForegroundInfo获取前景窗口句柄和焦点窗口句柄,但是无论是否需要输入,它总是返回有效值.
Hello all,
I am developing a simple input method, the requirement is: when some input box in other application, then my input application should show out and after input hide by itself.
Now i set a timer to detect when i should show my window out, so i need to detect the input box window handle of other application, if it is a valid handle, then i will show my input method out. But unfortunately, i don''t know to do. Do anybody can help me? thanks very much.
i tried GetForegroundInfo to get the foreground window handle and the focus window handle, but it always return valid value whatever it need input or not.
推荐答案
这篇关于如何从另一个应用程序中查找输入框句柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!