Hi Guys,
So I'm going through a basics tutorial for AutoIT (Original by Alex Peters (LxP)) and I've come across a hitch on one of the first scripts. I'm using the SciTE4AutoIt3 editor.
The script relates to notepad.exe and involved opening it, adding text, closing it and not saving. The code is here...
When I run this, notepad.exe will re-open itself a seemingly infinite number of times even when all other applications are closed (including the compiler). Eventually, my system will crash and I have to restart.
Any help would be much appreciated.
So I'm going through a basics tutorial for AutoIT (Original by Alex Peters (LxP)) and I've come across a hitch on one of the first scripts. I'm using the SciTE4AutoIt3 editor.
The script relates to notepad.exe and involved opening it, adding text, closing it and not saving. The code is here...
[ autoit ]
#ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Save") ;WinWaitActive("Notepad", "Do you want to save") ; When running under Windows XP Send("!n")
When I run this, notepad.exe will re-open itself a seemingly infinite number of times even when all other applications are closed (including the compiler). Eventually, my system will crash and I have to restart.
Any help would be much appreciated.