Sign in to follow this  
Followers 0
Everglades

Click a button with random names

8 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Why would the name be changing... wouldn't you just change the Caption/Text on the button?

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

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