Sign in to follow this  
Followers 0
eng1

send does not always work?

2 posts in this topic

#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

Share this post


Link to post
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.

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  
Followers 0