Jump to content
Macro Express Forums

Question On Variables, Etc..


Recommended Posts

ok firstly, i try to get pixel color from a certain pixel location, then move on to if variable N1 = 0(black), e.g keyboard text type 2.

heres the problem, lets say after we typed 2, the pixel location is supposed to NOT be black anymore, is there anyway to make the macro go back and check the color again AFTER it pressed 2 or checked for the first time and make corrections, e.g keyboard text type 3 and so on.


sorry if its alittle confusing..

Link to comment
Share on other sites

I am not sure about your last sentence but if I wanted it to keep retrying until the pixel wasn't black I would create a repeat group. Before the repeat clear the variable and then put the "get pixel" and comparison in the a Repeat Until loop. The condition for the repeat is "<>" (not equal to) "0". IOW repeat until N1<>0.


If you want to try several things it would depend on the text that would by typed. If it were 1,2,3,4... I would say do a repeat loop and use the counter as the variable. If N1<>0 the exit the loop. If it were a series of items Y,N,L or something just try each and put them in an IF where it will only try the next one if N1=0.


Does this help? If not give me some more details and I can get something better for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...