Phaser 0 Posted June 21, 2011 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
somdcomputerguy 103 Posted June 21, 2011 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