Everglades Posted June 1, 2008 Posted June 1, 2008 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 <.<
tigexo Posted June 1, 2008 Posted June 1, 2008 (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 June 1, 2008 by tigexo
Hok Posted June 1, 2008 Posted June 1, 2008 Why would the name be changing... wouldn't you just change the Caption/Text on the button?
Everglades Posted June 1, 2008 Author Posted June 1, 2008 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
tigexo Posted June 1, 2008 Posted June 1, 2008 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 EndIferror at starting: "For" statement has no matching "next" statementYes i edited cause in my first answer i forgot the next at the end of the for loopSorry, just add next at the end of the loop and it will be ok
Everglades Posted June 1, 2008 Author Posted June 1, 2008 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
tigexo Posted June 1, 2008 Posted June 1, 2008 you were understanding something wrong..i dont want to change the button or somethingi 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 moreWhere 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 itWell it s what i think
Everglades Posted June 1, 2008 Author Posted June 1, 2008 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 itWell it s what i thinkoh ok its working now i made some mistake ^^ thanks for helping
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now