Using 9.0.046 on XP SP2.
Could I please get some coding help with pixel colour?
I am using MS to emulate entering data into specific screens in a SAP application.
In some screens when I hit "Enter", SAP provides a warning/information panel at the bottom of the screen. This message lights up yellow (pixel colour 14931127 and requires further "Enter" button pushes until it finally goes green (pixel colour 1680973). The green indicates the screen can now be saved.
The number of "Enters" can differ and, even after the green and "Save" is applied, further yellows can appear and require more "Entering".
What I'm trying to do is to say:
Press ENTER
If (at screen position) 620,721 is 14931127 (yellow)
Press ENTER (again)
or If (at screen position) 620,721 is 1680973 (green)
Press CTRL
Send>s
Could someone please help me with the code I need to make this work?
I have tried:
Code: Select all
Let>PC=1680973
SetFocus>Copy Actions
Press ENTER
WaitPixelColor>1680973,620,721,1
If>PC=1680973,CChange1,CChange2
EndIf
Label>CChange1
Press CTRL
Send>s
RELEASE CTRL
Label>CChange2
Press ENTER
I would be really grateful for assistance as I struggle with code at the best of times.
TIA.