Hello. Ive never set values to a function before and I'm looking for advice on how I would do the following :
Store a value at the start of my script, then when I find an image with imagesearch, it calls that value and does that sequence of events. I need this in my script so I can do a section of code everytime I find certain images, without going through my script and posting the entire code in every single part, which would make my script insanely long. Thanks alot
Need Help with adding values to a function
Re: Need Help with adding values to a function
Well,
pause your game and study this manual chapter!: https://www.autohotkey.com/docs/v1/Functions.htm#intro
pause your game and study this manual chapter!: https://www.autohotkey.com/docs/v1/Functions.htm#intro
Re: Need Help with adding values to a function
More ideas here:
1. ImageSearch example
2. Gosub:
1. ImageSearch example
2. Gosub:
Jumps to the specified label and continues execution until Return is encountered.