DW1 Posted August 23, 2007 Share Posted August 23, 2007 How would I auto log into this? how would I recognize the difference between the text input and password input? they have the same name. <input TYPE="hidden" NAME="p_name" VALUE="S2"/> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td>User Name:<br> <input type="text" name="p_val" class="text"> </td> </tr> <tr> <td>Password:<br> <input TYPE="password" NAME="p_val" class="text"> </td> </tr> <tr> <td> <input type="submit" name="PC1" class="submit" value="Submit"></td> </td> </tr> </table> <br /> AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Shevilie Posted August 23, 2007 Share Posted August 23, 2007 Look under _IE in your Autoit Help.... Its there go search (Im not giving away a simple function you can obtain by simply reading the Autoit Help) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
DW1 Posted August 23, 2007 Author Share Posted August 23, 2007 is there a way to search by type? I have been looking at the help file... I tried: If _IEPropertyGet($oIE, "locationname") = "LicAdminTool Login Page" Then $inputname = 0 While Not IsObj($inputname) $inputname = _IEGetObjByName($oIE, "p_val") Sleep(100) WEnd _IEFormElementSetValue($inputname, $name, $info) and I tried it with: _IEGetObjById PLEASE help me AutoIt3 Online Help Link to comment Share on other sites More sharing options...
DaleHohm Posted August 23, 2007 Share Posted August 23, 2007 Look at _IEFormElementGetCollection with an index or _IEGetObjByName with an index. Dale 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 Link to comment Share on other sites More sharing options...
DW1 Posted August 23, 2007 Author Share Posted August 23, 2007 _IEGetObjByName Worked perfect with the index, thanks Dale AutoIt3 Online Help Link to comment Share on other sites More sharing options...
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