如何将重点放在外部流程上 [英] How to set focus on an extern process
本文介绍了如何将重点放在外部流程上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1.我编写了一个可以与两个键盘一起使用的程序.
例如:如果我在Word中有两个打开的文档,则来自键盘1的消息将转到文档1,而将键盘2的消息转到文档2.当我在文档1中收到消息时,我将失去对第二文档的关注.我想知道如何将焦点重新设置到失去焦点的位置.
2.有人知道我是否可以在与当前光标位置不同的位置单击鼠标(以便同时使用两只鼠标)吗?
谢谢大家.
1. I wrote a program to use with two keyboards.
For example: If I have two open documents in Word, the message from keyboard 1 goes to document 1 and keyboard 2 to document 2. When I receive a message in document 1, I lose focus in the second document. I want to know how I can set the focus back to the same point that I lost it.
2. Does anyone know If I can do a mouse click at a different place than the current cursor location (for using two mice at the same time)?
Thanks all.
推荐答案
您是否尝试过在"users32.dll"中使用名为FindWindow的函数?
have you tried to use a function in "users32.dll" called FindWindow?
这篇关于如何将重点放在外部流程上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文