Hello everyone,
I've been using autoit to write scripts and now that i have a set of working templates, i'd like to be cleaning them up.
I need some help on the following:
The script i wrote interacts with flash and my close window part is this:
(the location of the close window button varies, that's why i'm using a pixelsearch)
$point = PixelSearch( 900,15,1500,375, 15329512)
If IsArray($point) Then
MouseClick("left", $point[0], $point[1])
sleep(1000)
EndIf
sleep(100)
I'm using this bit of script a few times in my script and i wonder if i can call it like a variable or function instead of copy pasting it a bunch of times.
The script is working fine, but i'm a perfectionist and i think i skipped a few subjects on calling functions.
I'm preparing to be amazed by your knowledge