Sign in to follow this  
Followers 0
lowbot

send() typos?

6 posts in this topic

#1 ·  Posted (edited)

I've written a little script that opens IE7 and makes it visit a different webpage. The odd thing is that when it performs the send() it actually makes typos! I'm sending the text "http://www.yahoo.com" Every, say, 1 in 5 runs of this script causes the script to mess up the send(). It might send just "p://www.yahoo.com" or "http://www.ahoo.com"

What could be causing this? How can I fix this? Thanks.

CODE
run("C:\Program Files\Internet Explorer\IEXPLORE.EXE")

WinWaitActive("Google News - Windows Internet Explorer")

Controlclick("Google News - Windows Internet Explorer", "" , "Edit1")

Send("http://www.yahoo.com{Enter}")

Edited by lowbot

Share this post


Link to post
Share on other sites



The _IE* UDFs might help you out.

#Include<IE.au3>
_IECreate("www.yahoo.com")

Share this post


Link to post
Share on other sites

Thats guys. Adding the sleep to the script did the trick. The browser was just too busy rendering to take in all the text.

Is there a function that will type in text slower? Say I wanted to type at the speed a human would type.

Share this post


Link to post
Share on other sites

yeh the opt sendkeydelay.

Alters the the length of the brief pause in between sent keystrokes.

Time in milliseconds to pause (default=5). Sometimes a value of 0 does not work; use 1 instead.

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