hordecore Posted August 28, 2009 Posted August 28, 2009 i was following the tutorial in the autoit help it said by typing WinWaitActive("Notepad", "Do you want to save") Send("!n") it will close the windows by pressing alt n but it didnt work the notepad didnt close
jvanegmond Posted August 28, 2009 Posted August 28, 2009 That's hardly what it said. This is what it actually said: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Do you want to save") Send("!n") Alt + N clicks on the No button when it says "Do you want to save?".. github.com/jvanegmond
jvanegmond Posted August 28, 2009 Posted August 28, 2009 This doesn't work on my Vista machine by the way, either. This does: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "") Send("!n") Enjoy your tawtawrial. github.com/jvanegmond
WolfWorld Posted August 28, 2009 Posted August 28, 2009 This doesn't work on my Vista machine by the way, either. This does: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "") Send("!n") Enjoy your tawtawrial. Vista and Win7 change the string? Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
hordecore Posted August 28, 2009 Author Posted August 28, 2009 This doesn't work on my Vista machine by the way, either. This does: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "") Send("!n") Enjoy your tawtawrial. why only WinWaitActive("Notepad", "") works in vista? is it a bug?
jvanegmond Posted August 28, 2009 Posted August 28, 2009 The visible text in Vista:&Save Do&n't Save CancelTip: Never use text matching, only use title! github.com/jvanegmond
WolfWorld Posted August 28, 2009 Posted August 28, 2009 The visible text in Vista: &Save Do&n't Save Cancel Tip: Never use text matching, only use title! Sometime you need them when you have two same windows with different texts Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
jvanegmond Posted August 28, 2009 Posted August 28, 2009 (edited) Which happens like 0,00001% of the time. You can discriminate on so many parameters in the title. Even if you can't, there's always WinGetText. The parameter is kept for backwards compatibility, I think. Edited August 28, 2009 by Manadar github.com/jvanegmond
WolfWorld Posted August 28, 2009 Posted August 28, 2009 Which happens like 0,00001% of the time. You can discriminate on so many parameters in the title.Even if you can't, there's always WinGetText.The parameter is kept for backwards compatibility, I think.I think so. Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now