Stop function if nothing is found in pixel search....

Advanced Macro Recorder/Editor.

Moderator: Pulover

Hanszi11a
Posts: 11
Joined: 13 Nov 2020, 07:16

Stop function if nothing is found in pixel search....

Post by Hanszi11a » 28 Feb 2021, 07:56

Hey there!

I have a function that does a pixel search. If it finds the pixel in the search it continues on with the script. What IF statement would I make to stop or break the function from continuing if the pixel is not found and go back to the point where it left off in the macro?
I've tried break and stop in if pixel/image not found and they seem to break/stop the entire macro not just the function.

Thanks!

-Hanszilla

User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Stop function if nothing is found in pixel search....

Post by Pulover » 28 Feb 2021, 10:27

Breaks work inside loops. You can use function return to stop a function.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)

Post Reply

Return to “Pulovers Macro Creator”