Jump to content
Sign in to follow this  
Evgeny himmelreich

AutoItX MouseMove on Remote Desktop

Recommended Posts

Evgeny himmelreich

I wrote a simple script using AutiItX, that's just supposed

to do a mouse LeftClick and move the cursor out of the active window.

If I run it on local machine, it works ok.

Unfortunately if I run it in "Remote Desktop" session, the LeftClick event is fired

and mouse coordinates are changes, but the cursor stay in the same place.

The strange thing is, if I move the mouse to (1,1) :


The cursor changes to "Resize" cursor as if the cursor realy was in

the window corner, but it still in the old place.

Any idea what's going on or how I can get by this?


Evgeny Himmelreich

******** Script **********

var oAutoIt = new ActiveXObject("AutoItX.Control");


WScript.Echo("Before move x=" + oAutoIt.MouseGetPosX() +" y="+

oAutoIt.MouseGetPosY() );


WScript.Echo("After move x=" + oAutoIt.MouseGetPosX() +" y="+

oAutoIt.MouseGetPosY() );


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.