Jump to content

send does not always work?


Recommended Posts

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.12.1

Author: myName

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Run("eclipse4.exe")

sleep(19000)

MouseClick("left", 245, 146)

MouseClick("left", 880, 620)

MouseClick("left", 600, 330)

MouseMove(600, 330)

MouseMove(600, 330)

MouseMove(600, 330)

If I insert a send cmd after the run it does not always work.

The script is located in the same folder as the eclipse4.exe program

the 'name' of the windows box is eclipse v4 and the send syntax is as follows:

send ("eclipse4.exe","iclicl1")

Ths aim of this code is to put the passwd into the active window ?

Anyone got any ideas?

Rgds eddie george

Link to comment
Share on other sites

Two things:

1. Your Send() probably gets executed before the window exist, try using WinWaitActive() and perhaps a small Sleep().

2. That's not the right syntax for Send(), check the helpfile.

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