Macronovice Posted March 1, 2005 Report Share Posted March 1, 2005 How can I do this.. I want the macro chain to stop if the pixel colours of the cell/field equals a cetain colour ? Quote Link to comment Share on other sites More sharing options...
kevin Posted March 1, 2005 Report Share Posted March 1, 2005 Use the 'Get Pixel' and 'Macro Stop' or 'Macro Return' macro commands. Get Pixel: Screen Coords: 123,456 into %N1% If Variable %N1% = 000000 Macro Stop End If You will need to adjust the screen coordinates in the 'Get Pixel' command and the color value in the 'If Variable' command to suit your specific needs. Here are some other discussions about using the Get Pixel command: http://pgmacros.com/community/index.php?showtopic=337http://pgmacros.com/community/index.php?showtopic=326http://pgmacros.com/community/index.php?showtopic=233http://pgmacros.com/community/index.php?showtopic=220 Quote Link to comment Share on other sites More sharing options...
Macronovice Posted March 2, 2005 Author Report Share Posted March 2, 2005 Thanks Kevin, your a true gent Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.