|
Post by Klemik on Nov 24, 2018 14:59:40 GMT
I am trying to detect pixel color change, then perform a click with this macro:
1 | FOR | I | = | 1 TO 30 | NEXT 2 | IF | PIXEL COLOR | Color [R=0, G=120, B=215]::At Location [X:591 Y:347] | | MESSAGE PROMPT | A ::B | ELSE | 2 | RUN ACTION | | | | WAIT SECONDS | 1 3 | FOR | NEXT 4 | 845 | 550 | 1642 | Left Click Down 5 | 845 | 550 | 148 | Left Click Release
Unfortunately, this performs click even if the color has not changed and message prompt never o, any ideas ?
I am also getting errors, not sure why (condition created via built-in condition maker), for loop grabbed from tutorials.
|
|
|
Post by Klemik on Nov 24, 2018 15:40:15 GMT
OK, Ive downloaded newest version and it works now... At least the loop, but I am still not getting the A::B message prompt like the pixel color didn't work.
1 | FOR | I | = | 1 TO 30 | NEXT 7 | IF | PIXEL COLOR | Color [R=0, G=120, B=215]::At Location [X:1104 Y:392] | | MESSAGE PROMPT | OK::OK::0 | ELSE | 7 | RUN ACTION | WAIT SECONDS | 1 3 | FOR | NEXT 6 | RUN ACTION | MESSAGE PROMPT | Not OK::Not OK::0
Still getting the 1st error - "Condition operation invalid", just no idea what is wrong.
|
|
|
Post by Klemik on Nov 24, 2018 15:47:32 GMT
OK, I forgot I miss "IS THE SAME". After 1 hr I managed to fix this small macro You can leave it so others may find this useful or delete whole topic. 2 | IF | PIXEL COLOR | Color [R=0, G=120, B=215]::At Location [X:1104 Y:392] | IS THE SAME | MESSAGE PROMPT | OK::OK::0 | ELSE | 2 | RUN ACTION | WAIT SECONDS | 1
|
|
|
Post by Steve on Nov 25, 2018 2:25:09 GMT
All sorted Thanks Klemik
|
|