如何创建一个 Windows 应用程序:检测当前程序并发送快捷方式
我想创建一个适用于 Windows 的应用程序,该应用程序在系统托盘中可见,并且可以检测当前打开的窗口。我想要制作的应用程序还应该能够“按下用户键盘”:将键盘快捷键发送到当前打开的窗口/应用程序。
我该怎么做呢?哪些编程语言/工具有用?
如果它可以移植到 Mac 上就更好了,但这不是必须的。
I would like to create an application for Windows that is visible in the system tray and can detect the current open window. The application that I want to make should also be able to "press on the users keyboard": sending out keyboard shortcuts to the current open window/application.
How would I go about doing this? What programming languages/tools would be useful?
Best would even be if it is portable to Mac, but this is not a must.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可移植性:您不太可能找到任何跨平台的东西。
对于 Windows:AutoIt。做你想做的一切,甚至更多。
对于 Mac:Applescript(OSX 的标准组件)可能可以做到这一点,但我可能是错的。我确实有一台 Mac,但我从来没有理由玩弄这类东西。
Portability: Not very likely you can find anything that is cross-platform for this.
For Windows: AutoIt. Does everything you want and a lot more.
For Mac: Applescript (standard component of OSX) can probably do this, but I could be wrong about that. I do have a Mac, but I never had a reason to play around with this sort of stuff.