Sign in to follow this  
Followers 0
Phaser

MouseClick getting ahead of itself

2 posts in this topic

Hi Guys

I am using this bit of code on my XP machine, works fine

$i = 0
Do  
MouseClick("left", 100, 250, 1, 5)
$i = $i+1
Until $i = $numclicks;6

$i = 0
Do  
MouseClick("left", 150, 300, 1, 5)
$i = $i+1
Until $i = $numclicks;5

But I sent it to a colleague last night and he has vista, he says, it hasn't finished the first set of clicks before the mouse is over the next position??

Any ideas as to why, thanks in advance

Share this post


Link to post
Share on other sites



Maybe his machine is faster, so executes the code faster.. Put Sleep(100) between the two loops, that'll probably resolve this. Increase the sleep if 100 isn't enough, it should be though.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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