Jump to content

Send("!n") fails


fmlk
 Share

Recommended Posts

Hello,

As plain newbee a colleague pointed me to AutoIt and enthusiastically I started to dig into it.

I tried the following example script:

;This is my first script

;F. Mellink

;20110802

MsgBox(0, "Step 1", "Start Notepad")

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

MsgBox(0, "Step 2", "Add some text")

Send("AutoIT is easy and powerful.")

Send("It is user friendly and can be integrated in shell applications")

MsgBox(0, "Step 3", "Close Notepad")

WinClose("Untitled - Notepad")

MsgBox(0, "Step 4", "acknowledge")

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

Send("!n")

However the last Send command doesn't close Notepad as it is supposed to do. I run AutoIt in Win7-64bit. Maybe that is the problem?

Who can help me out?

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...