Jump to content
Sign in to follow this  
Guest abunet

SEND command problem (Fresh installation)

Recommended Posts

Guest abunet

Hi to all,

I'm encountering a problem after installing autoIt v3.

After installing with success the program, I've tried to run a simple Example, notepad1.au3. Running the example, the Notepad windows opens but nothing has been "written inside". It seems that the SEND command doesn't respond. I've tried to run the calculator example and had the same problem (the calculator opens, but no digits are inserted in the calculator). I can see in the tray icon that the autoit script icon is displayed and is set to Pause.

The problem happens both on a Desktop pc and a Laptop. The two machines have Windows Xp with Sp2. Windows Firewall is disabled.

Thanks in advance for your attention

Marco Roello

notepad1.au3 can be found in the examples folder of AutoIt installation

this is the text of notepad1.au3:

;

; AutoIt Version: 3.0

; Language: English

; Platform: Win9x/NT

; Author: Jonathan Bennett (jon@hiddensoft.com)

;

; Script Function:

; Opens Notepad, types in some text and then quits.

;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)

$answer = MsgBox(4, "AutoIt Example (English Only)", "This script will run Notepad type in some text and then quit. Run?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)

; If "No" was clicked (7) then exit the script

If $answer = 7 Then

MsgBox(0, "AutoIt", "OK. Bye!")

Exit

EndIf

; Run Notepad

Run("notepad.exe")

; Wait for the Notepad become active - it is titled "Untitled - Notepad" on English systems

WinWaitActive("Untitled - Notepad")

; Now that the Notepad window is active type some text

Send("Hello from Notepad.{ENTER}1 2 3 4 5 6 7 8 9 10{ENTER}")

Sleep(500)

Send("+{UP 2}")

Sleep(500)

; Now quit by pressing Alt-f and then x (File menu -> Exit)

Send("!f")

Send("x")

; Now a screen will pop up and ask to save the changes, the window is called

; "Notepad" and has some text "Yes" and "No"

WinWaitActive("Notepad", "No")

Send("n")

; Now wait for Notepad to close before continuing

WinWaitClose("Untitled - Notepad")

; Finished!

Share this post


Link to post
Share on other sites

Maybe you should check the title of your new notepad window : it should be "Untitled - Notepad" or it won't work. Run the AU3Spy if you wanna be 100% sure !

Share this post


Link to post
Share on other sites
Guest abunet

Thanks -=|GO7|=-, You're right. The problem is only localization. I'm italian, and the title of mmy notepad window is "Senza nome - Blocco note". I suppose that it's the same for the calculator example.

I'll take more attention before posting questions..

Regards.

Marco Roello

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...