Yaan1 Posted January 13, 2012 Share Posted January 13, 2012 So i want to move the mouse to a predefined place and click there 5 times. But the mouse just go's to 0.0. not 100 100 or 500 500 When mouse is set to 1 or 2. Why??? HotKeySet("m", "startmove") HotKeySet("q", "one") Global $mouse=0 global $cord1 global $cord2 global $mouse=0 global $123 =1 global $loop=1 global $1=1 While $loop=1 sleep(99999999) WEnd Func one() While $mouse =0 $mouse = InputBox("Hello", "Where would you like the mouse to go ") if $mouse=1 then $cord1=100 and $cord2=100 if $mouse=2 then $cord1=500 and $cord2=500 sleep(60000) EndIf EndIf WEnd endfunc Func startmove() while $1<=5 MouseClick("left",$cord1,$cord2,1,10) $1=$1+1 WEnd endfunc Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Developers Share Posted January 13, 2012 One more topic on this subject will get you banned. So better think before posting. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts