Jump to content

Problems with Alt Key


Recommended Posts

Thanks in advance.

I just installed AutoIT and was going through the tutorials. I'm stuck on the "Simple Notepad Automation". I have Vista Business SP2. I cannot for the life of me get it to close and save the note pad. The screen comes up do you want to save, and the script just stops, but stays running in the processes. This is the code, and Its exactly the same as the tutorial, but the alt does not work. Please help! Thanks again.

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

Send("This is some text.")

WinClose("Untitled - Notepad")

WinWaitActive("Notepad", "Do you want to save")

Send("!n")

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...