Hi guys
What am I doing wrong in my example here?
I want the script to loop from While 1 to WEnd until there is no WinExists("Test.txt")
When there is no WinExists("Test.txt") I want it to go to Else
MsgBox (1, "info" ,"Are you sure you want to open Notepad?")
While 1
ProcessClose("notepad.exe")
sleep(3000)
ShellExecute("notepad.exe")
Sleep(5000)
AutoItSetOption("WinTitleMatchMode", 2)
if WinExists("Test.txt") Then
WEnd
Else
MsgBox(0, "INFO", "Test.txt is no longer excisting")
EndIf
Exit