Jump to content

Recommended Posts

Posted

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() );

**************************

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...