hi.
This command should get colorvalues (rgb) from a pixel in position x,y and press e-key if conditions not met.
If conditions met, it shoulc exit command. which doesnt happen. Just types 6 x e-key.
I have checked values the condition variables, their all within limits which, as I understand it, should trigger an exit of command.
I wonder if the end condition cant exit out of a loop?
Any suggestions?
Thank You.
Start VoiceAttack listening
// Obtain mouse cursor's X-coordinate
Set integer [~~mouseX] value to 309
Set integer [Teller] value to 0
// Obtain mouse cursor's Y-coordinate
Set integer [~~mouseY] value to 345
// Output mouse cursor coordinate
Write [Black] 'Cursor Coordinate = ({INT:~~mouseX} , {INT:~~mouseY})' to log
// C# inline function to obtain RGB and hexadecimal color values for screen pixel at (X, Y) coordinate of interest
Inline C# Function: Retrieve pixel color data at (X, Y) screen coordinate, wait until execution finishes
// Output RGB color values for screen pixel coordinate of interest
Write [Red] 'Red Value = {INT:~~RedValue}' to log
Write [Green] 'Green Value = {INT:~~GreenValue}' to log
Write [Blue] 'Blue Value = {INT:~~BlueValue}' to log
// Output hexadecimal color value for screen pixel coordinate of interest
Write [Gray] 'Hex Value = {TXT:~~HexValue}' to log
Start Loop While : [Teller] Is Less Than 6
Set integer [Teller] to [Teller] plus 1
Write [Blue] '{INT:Teller}' to log
Begin Condition : ([~~Green Value] Is Greater Than 160 AND [~~Green Value] Is Less Than 231 AND [~~Red Value] Is Greater Than 229 AND [~~Red Value] Is Less Than 251)
End Condition - Exit when condition met
Press E key and hold for 0.05 seconds and release
Pause 3 seconds
End Loop
Set integer [Teller] value to 0
Stop VoiceAttack listening