AmolBhosale Posted April 30, 2013 Share Posted April 30, 2013 (edited) Hi, I am new to scripting world. When i tried tutorial for Simple Notepad Autonation, i face the problem that i does not quit. It wait for the inputs. Script is as below 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") As per example, it should be close without asking "Do you wan to Save" Thanks in Advance. Edited April 30, 2013 by AmolBhosale Link to comment Share on other sites More sharing options...
AmolBhosale Posted April 30, 2013 Author Share Posted April 30, 2013 Hello, I come to know that there is mistake in 5th line. Instead of "Save" there should be "&No". Can u pls send the script which will check current hostname then it will change that hostname from mention file in which it will search for current hostname & then it will copy next cell information for new hostname. Link to comment Share on other sites More sharing options...
JohnOne Posted April 30, 2013 Share Posted April 30, 2013 Post in the help forum AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 30, 2013 Moderators Share Posted April 30, 2013 AmolBhosale, your request is not making much sense. Check the @ComputerName macro in the help file for how you would check current host name. Beyond that, you need to state specifically what you are trying to do so we can help. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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