Sign in to follow this  
Followers 0
MattNis

Mouse function considerably slower

3 posts in this topic

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]

Share this post


Link to post
Share on other sites



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)

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