milkman Posted March 15, 2006 Posted March 15, 2006 I need to know how to check boxes on a web site. Here is a picture of what I need.Those 2 check boxes at the bottum. How can I do this.
greenmachine Posted March 15, 2006 Posted March 15, 2006 GHAHAHHH what game is thatHow did that have anything to do with the problem at hand?@milkman - look at IE.au3... it might be able to help (at least with automation, not sure about checking boxes or anything.. haven't tried).http://www.autoitscript.com/forum/index.php?showtopic=13398
Thatsgreat2345 Posted March 15, 2006 Posted March 15, 2006 ummmmmm idk? i was askign so i could go on the game and try to check the boxes but i didnt know what game it was
seandisanti Posted March 15, 2006 Posted March 15, 2006 How did that have anything to do with the problem at hand?@milkman - look at IE.au3... it might be able to help (at least with automation, not sure about checking boxes or anything.. haven't tried).http://www.autoitscript.com/forum/index.php?showtopic=13398ie.au3 is definitely the way to go, it can check boxes etc assuming that they are in an html form, and it's not a java app or anything. also, just my $.02, while i would agree with you that the mocking post was not very professional, i must still admit that i laughed, and was relieved someone else did it so i wouldn't have to. In the OP's defense though, they're looking to automate the game, so it can be assumed they're not looking to really enjoy playing it.
milkman Posted March 16, 2006 Author Posted March 16, 2006 (edited) Ive looked through IE.au3, but would the check boxes be considered a form? WHich function would I use. Also in my defense, this was requested by a member at a site I belong to. =P Are check boxes considered forms? Edited March 16, 2006 by milkman
nfwu Posted March 16, 2006 Posted March 16, 2006 (edited) Check boxes are part of forms... #) EDIT: supply the source code of the website please. Edited March 16, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
milkman Posted March 16, 2006 Author Posted March 16, 2006 I found the part of the source where it talks about the check boxes, unfortunitally they have the same name. How can I check them both. <input type=checkbox name=wep[]value=4412336f82d63></td> <td align=center bgcolor=white width=25%> <img src='images/items/battlehammer.png' width=90 height=90 border=0 alt='Battle Hammer'> <br> <input type=checkbox name=wep[] value=4410936c812b4></td>
nfwu Posted March 16, 2006 Posted March 16, 2006 Not quite enough source code... I need the part <form> and </form> #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
Valuater Posted March 16, 2006 Posted March 16, 2006 This example opens the AutoIt forum search page and toggles the sortby radiobuttons. An identical technique can be used with checkboxes. #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "http://www.autoitscript.com/forum/index.php?act=Search&f=") $oFrom = _IEFormGetObjByName($oIE, "sForm") $oRelevant = _IEFormElementGetObjByName($oFrom, "sortby", 0) $oRecent = _IEFormElementGetObjByName($oFrom, "sortby", 1) For $i = 1 to 5 $oRelevant.checked = True Sleep(1000) $oRecent.checked = True Sleep(1000) Next might want to try the IE.au3 Builder .... its in my signature below 8)
milkman Posted March 16, 2006 Author Posted March 16, 2006 I get this error when I run the script C:\Program Files\AutoIt3\beta\Include\IE.au3 (848) : ==> Variable must be of type "Object".: If IsObj($o_object.elements.item ($s_name, $i_index)) Then If IsObj($o_object^ ERROR
nfwu Posted March 16, 2006 Posted March 16, 2006 Hmmm.... i've seen that error before... I'll go check the post with it. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
DaleHohm Posted March 16, 2006 Posted March 16, 2006 I found the part of the source where it talks about the check boxes, unfortunitally they have the same name. How can I check them both.You should check out the discussion of checkboxes and radio buttons hereDale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
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