fug5333 Posted October 4, 2009 Report Share Posted October 4, 2009 I want to make a macro that will start at a set x,y coord, check that pixel color, if "X", then do "this", if not, move to the next pixel (x+1,y), and start over. When it gets to the end go back to the start and do (x,y+1) to move to the next row. Here's what I've got so far: Mouse Move Window 366, 267 //Move the mouse to the start point Get Mouse Position Window: %N1%, %N2% //Put the mouse coords into variables Repeat Start (Repeat 759 times) //The pixels of one row Get Pixel: Under Mouse into %N3% Get Mouse Position Screen: %N4%, %N5% If Variable %N3% = 43775 //The color I want Mouse Left Button Click Delay 250 Milliseconds Mouse Move Position 0, 60 Mouse Left Button Click Mouse Move Screen %N4%, %N5% Else Mouse Move Screen%N1%, %N2% End If Repeat End Whew. The mouse (quickly) moves to the start position, then to the right one pixel, then to the left one pixel and stops. Any help would be great! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.