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....

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....

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)

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 10 guests