Sign in to follow this  
Followers 0
BigDan

Browser Interaction

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

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