Jump to content

Click a button with random names


Recommended Posts

Hi i want to click on this button

center><input type="submit" style="padding: 5px;" value="Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" name="jam"> the name is always changing to a random name.. like hi,bye.....

is there any way to click the button by the value or something?

if yes please give me a example thanks

was looking for a resolution for 3 hours now <.<

Link to comment
Share on other sites

Hi i want to click on this button

center><input type="submit" style="padding: 5px;" value="Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" name="jam"> the name is always changing to a random name.. like hi,bye.....

is there any way to click the button by the value or something?

if yes please give me a example thanks

was looking for a resolution for 3 hours now <.<

if the value doesn't change each time, maybe you could try this

$oInputs = _IETagNameGetCollection ($oIE, "input")
For $oInput In $oInputs
    If $oInput.value = "Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" Then
        $oInput.click
        ExitLoop
    EndIf
NEXT

Hope it will help, for my self i m still searching to find a way to click on an image. It seems sometimes in practice it s more difficult than in theory :)

Edited by tigexo
Link to comment
Share on other sites

if the value doesn't change each time, maybe you could try this

$oInputs = _IETagNameGetCollection ($oIE, "input")
For $oInput In $oInputs
    If $oInput.value = "Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" Then
        $oInput.click
        ExitLoop
    EndIf
NEXT

Hope it will help, for my self i m still searching to find a way to click on an image. It seems sometimes in practice it s more difficult than in theory :)

trying to make this:

#include <IE.au3>

;Create the IE

$oIE = _IECreate ("http://www.gamesites200.com/lineage2/in.php?id=7675")

$oInputs = _IETagNameGetCollection ($oIE, "input")

For $oInput In $oInputs

If $oInput.value = "Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" Then

$oInput.click

ExitLoop

EndIf

error at starting: "For" statement has no matching "next" statement

Link to comment
Share on other sites

trying to make this:

#include <IE.au3>

;Create the IE

$oIE = _IECreate ("http://www.gamesites200.com/lineage2/in.php?id=7675")

$oInputs = _IETagNameGetCollection ($oIE, "input")

For $oInput In $oInputs

If $oInput.value = "Click here to vote for L2 Rapture - Interlude - 30x - Stack Sub" Then

$oInput.click

ExitLoop

EndIf

error at starting: "For" statement has no matching "next" statement

Yes i edited cause in my first answer i forgot the next at the end of the for loop

Sorry, just add next at the end of the loop and it will be ok

Link to comment
Share on other sites

you were understanding something wrong..

i dont want to change the button or something

i just want to click on it ... nothing else.. but the name of the button is changing all the time so i cant use

$oButton= _IEGetObjByName ($oIE, "")

i just want to CLICK it nothing more

Link to comment
Share on other sites

you were understanding something wrong..

i dont want to change the button or something

i just want to click on it ... nothing else.. but the name of the button is changing all the time so i cant use

$oButton= _IEGetObjByName ($oIE, "")

i just want to CLICK it nothing more

Where do u see in this code that it changes the button ??

It just select the input with the value = "..." in all the inputs of the webpage ang it clicks on it

Well it s what i think

Link to comment
Share on other sites

Where do u see in this code that it changes the button ??

It just select the input with the value = "..." in all the inputs of the webpage ang it clicks on it

Well it s what i think

oh ok its working now i made some mistake ^^

thanks for helping

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