I'm starting to be able to create short scripts, but the execution is erratic, some pop ups and sounds show up to quick or to slow.
I have set some win wait and sleeps but still I can't seem to get a good flow between steps, any suggestions welcome. This happens with this example:
;WinSetState("[CLASS:SciTEWindow]", "", @SW_MINIMIZE)
Opt("WinTitleMatchMode", 2)
If WinExists ("Mozilla") Then
MsgBox(0, "", "Firefox is now running")
Sleep(1000)
Else
MsgBox(0, "", "Please Start Firefox")
EndIf
WinWaitActive("Mozilla")
If WinExists ("Mozilla") Then
MsgBox(0, "", "Firefox is now running")
Sleep(1000)
Else
MsgBox(0, "", "Please Start Firefox")
EndIf
PS. Do I need to repeat my Opt("WinTitleMatchMode", 2) before EVERY Window or just leave it at the beginning of the script?
Thanks