0re0 0 Posted May 27, 2011 Hey Guys I hope you can help if IsArray ($pixel1) = True Then MouseMove ($pixel1 [0], $pixel1 [1], 1) Move mouse 20 pixel down. MouseClick ('left') Now how u see i need help, how i can move the mouse 20 pixel under the variable $pixel1. Thank YOU 0re0 Share this post Link to post Share on other sites
sleepydvdr 8 Posted May 27, 2011 A newbie asking about question like this. I wonder what this might be for? #include <ByteMe.au3> Share this post Link to post Share on other sites
0re0 0 Posted May 27, 2011 I want to know it cause I made one project with/about Autoit in school. Share this post Link to post Share on other sites
smartee 14 Posted May 27, 2011 hi 0re0, Welcome to the forum Try thisMouseMove($pixel1[0], $pixel1[1] + 20, 1) Hope this helps, -smartee Share this post Link to post Share on other sites
0re0 0 Posted May 27, 2011 $pixel1 = PixelSearch (125, 70, 916, 615, 0xFFFFA0) While 1 if IsArray ($pixel1) = True Then MouseMove($pixel1[0], $pixel1[1] + 20 , 1) MouseClick ('left') sleep (1000) EndIf WEnd Now the programm should use press with left-click on yellow letters, but in presses always (if I move my mouse, too) to the same position with the color 0xF0F4F9 (standart white). What did I wrong? Share this post Link to post Share on other sites
monoscout999 10 Posted May 27, 2011 Now the programm should use press with left-click on yellow letters, but in presses always (if I move my mouse, too) to the same position with the color0xF0F4F9 (standart white). What did I wrong?try mouseclick() only... read the help about it, it can move the mouse too Share this post Link to post Share on other sites
brandonms 0 Posted May 28, 2011 $pixel1 = PixelSearch (125, 70, 916, 615, 0xFFFFA0) While 1 If IsArray ($pixel1) Then MouseClick ("PRIMARY", $pixel1[0], $pixel1[1], 1, 0) Sleep (1000) EndIf WEnd Share this post Link to post Share on other sites