1) Check that the confirmation msg window is the same as ur title
2) if u think that everything is correct and u donno where is the error then i will tell u, u need to try to get focus on the window that u will send "!n" to. do that by WinActivate(),
that will be the code u need.
Quote:
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("Whatever.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
WinActivate("Notepad", "Do you want to save")
Send("!n")
|