R.Y.
R.Y.

Reputation: 19

remote AutoIt mouse control script not executed

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

Upvotes: 0

Views: 339

Answers (2)

LinusSch
LinusSch

Reputation: 338

If the problem is that OpenSSH does not provide control for non-console apps, a clean solution would be to compile your script as a console application.

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

Upvotes: 0

R.Y.
R.Y.

Reputation: 19

ok found out the reason-openssh doesnt provide gui apps control. found a workaround invoking psexec from ssh, and using it to activate the mouse control script.

Upvotes: 1

Related Questions