gpt4 book ai didi

Windows 系统编程 : Can a keystroke be sent to an open application that is not the currently active one?

转载 作者:可可西里 更新时间:2023-11-01 10:31:05 26 4
gpt4 key购买 nike

我对我的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com