brad25 Posted March 29, 2010 Share Posted March 29, 2010 i wrote some code to find a certain color and then move the mouse to that color now im trying to figure out how i can make the mouse move about 30 pixels to the right once it moves the mouse to the color. so when it finds the color it moves the mouse to the color then moves the mouse 30 pixels to the right can this even be done? Link to comment Share on other sites More sharing options...
JohnOne Posted March 29, 2010 Share Posted March 29, 2010 Yes, MouseMove(x+30,y) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
brad25 Posted March 29, 2010 Author Share Posted March 29, 2010 $lct = PixelSearch( 0, 161, 1010, 750, 0x98612e) If Not @error Then MouseMove ( $lct[0], $lct[1]) EndIf theres my code what do i put for the x and y? i just want it to move 30 pixels to the right of that color when its found Link to comment Share on other sites More sharing options...
JohnOne Posted March 29, 2010 Share Posted March 29, 2010 (edited) $lct = PixelSearch(0,161,1010,750,0x98612e) If Not @error Then MouseMove ($lct[0],$lct[1]) EndIf MouseMove ( $lct[0]+30, $lct[1]) Edited March 29, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
brad25 Posted March 29, 2010 Author Share Posted March 29, 2010 works ty john Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now