Sign in to follow this  
Followers 0
AlmarM

2 _IE Questions

3 posts in this topic

Hey,

I have 2 Questions.

1.:

If I go to "http://southparkzone.com/" ull see Season 1 Season 2 etc. at the left side. Below it, there is a button called "Random Episode". How can I click it with the script?

I saw something with _IEAction() but I dont realy get it.

2.:

If I know how to click the "Random Episode" button, there is my next problem.

If u pressed it, it will create a random movie link. How can I get the link with the script?

-AlmarM-


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

For #1...

$oIE = _IECreate("http://www.southparkzone.com")

$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
;MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    
;ConsoleWrite($oLink.href & @CRLF)
    
    If $oLink.href="http://www.southparkzone.com/random.php" then  _IEAction($oLink, "click")
    
Next

_IELoadWait($oIE)

$oInputs = _IETagNameGetCollection ($oIE, "input")
For $oInput In $oInputs
;   MsgBox(0, "Form Input Type", "Form: " & $oInput.form.name & " Type: " & $oInput.type)

    If $oInput.type="text" then ConsoleWrite($oInput.name  & "=" & $oInput.value  & @CRLF)
Next

Edit: Changed the link to the random link with the season1 link.

Edited by DjDeep00

Share this post


Link to post
Share on other sites

THANK YOU!

And I just realized I didnt need the link !

-AlmarM-


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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