WWO
Full Member
Posts: 21
|
Post by WWO on Mar 7, 2021 11:53:25 GMT
I see www.turnssoft.com/conditions.html#pixelcolore.g. 1 | IF | PIXEL COLOR | Color [R=145, G=228, B=247]::At Location [X:942 Y:536] | IS NOT THE SAME | CONTINUE Is there a way to get the current pixel colors at coords? such as e.g. 1 | RUN ACTION | PIXEL COLOR SAVE::At Location [X:942 Y:536] 2 | RUN ACTION | DEBUG | logger::INFO::Saved pixel color is (%RGB-R%, %RGB-G%, %RGB-B%). If there is no such way to get the current pixel colors at coords, could one be made, please?
|
|
|
Post by Steve on Mar 7, 2021 20:59:26 GMT
No currently there is not a way to programmatically collect the pixel color at X and Y coords and assign it to a variable.
I do like your suggestion though to add it in. I can see where it could be useful in combination with the PIXEL COLOR if conditions.
This is what I have in mind:
1 | RUN ACTION | PIXEL COLOR SAVE::At Location [X:942 Y:536]::R=RGB-R,G=RGB-G,B=RGB-B ...do some macro things... 100 | IF | PIXEL COLOR | Color [%RGB-R%, %RGB-G%, %RGB-B%]::At Location [X:942 Y:536] | IS NOT THE SAME | CONTINUE
|
|