Jump to content

Recommended Posts

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
Posted

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.

Posted

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.

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
×
×
  • Create New...