作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我对我的 Windows 系统编程有点生疏......
如果(打开的)目标应用程序当前没有焦点,程序是否可以将击键(我猜测是通过 SendMessage()
api 调用)发送到另一个应用程序?如果可能的话,是让目标应用程序成为事件应用程序,还是仍然留在后台?
提前感谢您提供的任何信息!
最佳答案
不,它不会改变焦点,除非后续调用设置焦点。它将保持相同的窗口顺序
关于Windows 系统编程 : Can a keystroke be sent to an open application that is not the currently active one?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/593796/
我是一名优秀的程序员,十分优秀!