Jump to content

Browser Interaction


BigDan
 Share

Recommended Posts

Hell all!

I have developed a script that automates some features of an online game. What I need to make sure happens is that it only executes the next iteration if we are currently on the proper page.

Only two ways I can think of to do this is:

  • Simulate F4 in IE, copy the text, parse it.
  • Find a way to read the address bar contents.
Using IE only is fine for now. I can do #1, but I think it's a bit sloppy. Can anyone tell me of a way I can do #2?

Thank you.

--Dan

Link to comment
Share on other sites

Does this help

Opt("WinTitleMatchMode", 2)
WinSetState("Internet Explorer", "", @SW_MAXIMIZE )
WinActivate("Internet Explorer", "")
Send("{F6}")
Send("^{INS}")
$add = ClipGet()
MsgBox(0,"Address",$add)
Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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