Jump to content

send() typos?


Recommended Posts

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

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