Hi, guys, i wanna know it there is funcion for do this.
I post a screen for explayin better the answer
I have make a simple macro for find the image in the red box, when the script found it i need to search some specific pixel on the right(near the yellow box area)
But how can i add some offset?
if i found the red box image at pixels 500x500, how can i add the offset for search if 20 pixel to the right there are a specific pixel color?
is possible do this?
Moderator: Pulover
is possible do this?
- Attachments
-
- scren forunm.png (490.86 KiB) Viewed 1395 times
Re: is possible do this?
Code: Select all
[PMC Code v5.0.4]|F10||1|Screen,2,Fast,0,1,Input,-1,-1,1|1|Macro1
Groups=Start:1
1|Continue, Continue, FoundX, FoundY, 1|0, 0, 1920, 1080, D:\PuloversMacroCreator-Portable-5.04\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20201106113752.png|1|0|ImageSearch||Window|||
2|If Image/Pixel Found||1|0|If_Statement|||||
3|Left Click, Continue, FoundX, FoundY, 1|0, 0, 1920, 1080, D:\PuloversMacroCreator-Portable-5.04\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20201106113919.png|1|0|ImageSearch||Screen|||
4|Move|FoundX, FoundY, 0|1|10|Click|||||
5|[Else]|Else|1|0|If_Statement|||||
6|Return||1|0|Return|||||
7|[End If]|EndIf|1|0|If_Statement|||||
Information worth everything....
Re: is possible do this?
You can use the output variables of ImageSearch inside the If Image Found statement and create variables for height and width from them using the variables window, e.g. FoundW := FoundX + 100, then use the variables in the coordinates of PixelSearch.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)