MattNis Posted May 26, 2004 Share Posted May 26, 2004 Since the API functionality has not been implemented in AutoIT, I have been using a version of the code below. It works well in the released version (the cursor stays within the square), but the script lets the cursor jump out of the square in the latest beta. HotKeySet("!e","E") AutoITSetOption("SendKeyDelay",0) AutoITSetOption("WinWaitDelay",0) while(1) $pos = MouseGetPos() $x = $pos[0] $y = $pos[1] Select Case $pos[0] > 600 MouseMove(600, $y,0) Case $pos[0] < 400 MouseMove(400, $y,0) Case $pos[1] > 400 MouseMove($x, 400,0) CASE $pos[1] < 200 MouseMove($x, 200,0) endSelect wend func E() Exit endfunc [quote]I was busy waiting all night for the Columbus Day Bunny to come down my chimney and light fireworks in my pumpkin.There's so much wrong with that.Oh, I'm sorry, i forgot you were Jewish.[/quote] Link to comment Share on other sites More sharing options...
emmanuel Posted May 26, 2004 Share Posted May 26, 2004 hmmm... that's interesting to know... though I have no idea why it'd be, I can cooborate that it also happens to me. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 26, 2004 Administrators Share Posted May 26, 2004 I get exactly the same on the release version... Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now