blackdog64 Posted July 5, 2010 Share Posted July 5, 2010 (edited) Hi all, I've just followed the tutorials (hello world and notepad) and I'm using the x64 version on AutoIt (latest version). Problem is, send yes or no does not seem to work under win 7 x 64. Or, most likely, I'm doing something stupid. Below is the code as per the notepad tutorial: ; Script Start - Add your code below here Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Do you want to save") Send("!n") From meddling about, it seems that Send("!y") does not work either: the dialogue box pops up and wants me to select yes or no. Also, am I right thinking that there's no way to automatically select Yes or No for UAC? Send string (as above, "this is some text" works fine. Any help appreciated! Edited July 5, 2010 by blackdog64 Link to comment Share on other sites More sharing options...
Developers Jos Posted July 5, 2010 Developers Share Posted July 5, 2010 This version works fine in Win7 X64: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Do&n't Save") Send("!n") Just use au3info to find the info of the dialog windows that is available for you. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
blackdog64 Posted July 5, 2010 Author Share Posted July 5, 2010 Great! That does work, thanks very much. Link to comment Share on other sites More sharing options...
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