Sign in to follow this  
Followers 0
Evgeny himmelreich

AutoItX MouseMove on Remote Desktop

1 post in this topic

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) :

oAutoIt.MouseMove(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?

Regards

Evgeny Himmelreich

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

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

oAutoIt.LeftClick(oAutoIt.MouseGetPosX(),oAutoIt.MouseGetPosY());

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

oAutoIt.MouseGetPosY() );

oAutoIt.MouseMove(1,1);

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  
Followers 0