发送按键/鼠标点击与AutoHotkey的Java程序 [英] Sending keystrokes/mouse clicks to a Java program with Autohotkey

查看:1017
本文介绍了发送按键/鼠标点击与AutoHotkey的Java程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着发送击键和鼠标移动到Java程序,但一旦一个应用具有焦点发送任何内容。这是因为如果Java应用程序需要的一切的焦点,因为AutoHotkey的停止响应。一切工作在普通的Windows应用程序(例如记事本)的罚款。

Im trying to send keystrokes and mouse movements to a Java program but once the applicaton has focus nothing is sent. It's as if the Java application takes focus of everything because Autohotkey stops responding. Everything works fine in a regular Windows app (e.g. Notepad).

我一直利用各种发送方法(发送,SendInput和的SendEvent),但没有任何工程试过。有没有人有什么建议?

I've tried using various send methods (Send, SendInput, and SendEvent) but nothing works. Does anyone have any suggestions?

特别节目是ThinkOrSwim的ThinkDesktop。

The program in particular is ThinkOrSwim's ThinkDesktop.

推荐答案

有些玩弄我发现TOS在Mac OSX可以通过脚本来控制用的键盘大师。这是一个丑陋的,砍死解决方案,但它的工作原理。您可以编辑的文本框,然后点击的东西,如果你知道X,要素的Y位置。

Some playing around I've discovered that TOS on Mac OSX can be controlled via scripting with Keyboard Maestro. It's a ugly, hacked solution, but it works. You can edit text boxes and click stuff if you know the X,Y position of elements.

键盘大师可以通过scrips(的AppleScript,Python等),所以也许你可以建立一些复杂的乡巴佬运行戈德堡。

Keyboard Maestro can be run via scrips (AppleScript, Python, etc.) so maybe you can build some elaborate rube goldberg.

有谁知道一个更好的方式来操作鼠标?也许使用Python?

Does anyone know a better way to manipulate the mouse? Perhaps with Python?

这篇关于发送按键/鼠标点击与AutoHotkey的Java程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆