remote AutoIt mouse control script not executed

时间:2016-02-12 20:04:41

标签: android automation autoit

my goal is to run a script on a Windows 7 with OpenSSH from an Android device, that will control the cursor. I have written an AutoIt script and compiled it into an exe on the pc (tested it from the cmd, and it works).

the problem is, when i log in from the android and test using ConnectBot (simply run the script), it doesn't do anything. console debugging shows nothing as if all was successful. I have tried running other compiled AutoIt scripts for file creation for example, and they work fine.

can someone explain to me why this happens and what can be done? i suspect environment variables issues here, but don't know what can be done.

Thanks

2 个答案:

答案 0 :(得分:1)

确定发现原因 - openssh不提供gui应用程序控制。找到了一个从ssh调用psexec并使用它来激活鼠标控制脚本的变通方法。

答案 1 :(得分:0)

如果问题是OpenSSH不提供对非控制台应用程序的控制,那么一个干净的解决方案是将脚本编译为控制台应用程序。

C:\Users\Linus> Aut2exe.exe /in yourscript.au3 /console