|
Post by Johnc on Sept 13, 2018 15:05:53 GMT
Hi Steve,
Is it possible to perform a mouse clicks/keypress action after a colour pixel condition? Thanks!
e.g.
141 | IF | PIXEL COLOR | Color [R=243, G=243, B=245]::At Location [X:1300 Y:312] | IS THE SAME | 146 | 473 | 509 | 1500 | Left Click Down | 147 | 473 | 509 | 200 | Left Click Release
|
|
|
Post by Steve on Sept 13, 2018 22:12:24 GMT
Hi John, No not at the moment. Only the actions that are in the 'action list' are available. To do this your going to need to do some extra lines and conditions. Something like this: 1 | IF | PIXEL COLOR | Color [R=243, G=243, B=245]::At Location [X:1300 Y:312] | IS THE SAME | DEFINE STRING VARIABLE | %STRING4%::Left Click | ELSE | 3 | RUN ACTION | | | | DEFINE STRING VARIABLE | %STRING4%::Mouse Movement 2 | 2088 | 266 | 720 | %string4% You may need to use the 'macro edit' window under options to add this in. Also as a shortcut, if you don't need to drag a window then just 'Left Click' is better. Left Click performs both a 'down and release'. Cheers, Steve.
|
|
|
Post by Johnc on Sept 14, 2018 1:55:14 GMT
Wow! This is working! Awesome! Steve!! Thank you once again!
1 | RUN ACTION | | | | WAIT SECONDS | 5
2 | IF | PIXEL COLOR | Color [R=236, G=37, B=39]::At Location [X:1431 Y:301] | IS THE SAME | DEFINE STRING VARIABLE | %STRING4%::Left Click | ELSE | 3 | RUN ACTION | | | | DEFINE STRING VARIABLE | %STRING4%::Mouse Movement
3 | 1433 | 345 | 1000 | %string4% I had to add 5 secs to help pop the window and hence a colour change. I suppose I could use another pixel color condition-continue in front of line 2 to wait for the colour change!
|
|
|
Post by Johnc on Sept 14, 2018 9:36:28 GMT
This is exactly why detecting a shift in colour is useful, rather than looking for an absolute colour value. Not just looking for one shift in colour, but also counting how many times the colour changes and reacts accordingly. Thanks.
|
|