Not sure I'm using the correct terminology there but here's what I'd like to do.
I have this script, it works great, but I have this loop in it that I use to pause the script while it's executing.
This is sprinkled all over my script:
Code:
Loop
{
Sleep, 1000
If A_Cursor not contains AppStarting,Wait
break
}
What I tried to do was make it a function (again not sure if that is the correct terminology) and call it with gosub:
Code:
script excuting blah blah blah
gosub, pfp
more script excuting blah blah blah
; FUNCTIONS
PFP: ; Pause For Program
Loop
{
Sleep, 1000
If A_Cursor not contains AppStarting,Wait
break
}
But when I do that I the more script executing stuff doesn't excute.