hello.
I try run 2 codeparts in 1 command.
1st codepart (green) ment to click 4 and 2nd codepart ment to click 2, both dependant of colorpixle.
Oh color dont show, might be its possible to identify the 2 parts anyway(?)
I could probably
a) run 3 commands, a main, controlling 2 alternative paths of instructions.
b) try to fit solution in 1 command (attached)
Would a be slower than b?
RE. a: Im stuck with the exit commands/end conditions.
Any help to get their logical placement in code?
Programming goal is:
Loop, and compare, 2 pixel color value pairs, until equality is found width one of the pairs.
Dependant of colorvalues, type a keyboardkey.
Do a correct exit of this command <------??
Set integer [~~mouseX] value to 962
Set integer [~~mouseY] value to 1010
Set integer [~~mouseX2] value to 147
Set integer [~~mouseY2] value to 1002
Set Boolean [vari1] to True
Start Loop While : [vari1] Equals True
Inline C# Function: Function for retrieving pixel color data at (X, Y) screen coordinate, wait until execution finishes
Begin Condition : ([~~RedValue] Is Greater Than 90 AND [~~RedValue] Is Less Than 112 AND [~~BlueValue] Is Greater Than 52 AND [~~BlueValue] Is Less Than 70)
Press 4 key and hold for 0,06 seconds and release
Say, 'finish2'
Exit Command
End Condition
Set integer [~~mouseX] value to the value of [~~mouseeX2]
Set integer [~~mouseY] value to the value of [~~mouseY2]
Inline C# Function: Function for retrieving pixel color data at (X, Y) screen coordinate, wait until execution finishes
Begin Condition : ([~~RedValue] Is Greater Than 207 AND [~~GreenValue] Is Greater Than 207 AND [~~BlueValue] Is Greater Than 207)
Press 2 key and hold for 0,06 seconds and release
Pause 0,1 seconds
Say, 'finish3’
Exit Command
End Condition
End Loop
If