uPod Posted February 21, 2008 Share Posted February 21, 2008 Ok, I'm having trouble with the selecting forums part. I have the name of the form, I went through the HTML code. I understand what _IEFormGetObjByName does but what exactly does _IEFormElementGetObjByName do? I don't really understand it or even how to get the form elements. Oh and btw, what exactly am I doing when I state $oIE or $o_***. It sounds noobish but I couldnt find anything on it. Link to comment Share on other sites More sharing options...
DaleHohm Posted February 21, 2008 Share Posted February 21, 2008 Hopefully you're working with the helpfile right? Have you worked through the examples for _IEFormElementGetObjByName? Please don't just read it, try it out and play with it... all of the IE examples are fully self-contained and actully DO something, rather than just show you the syntax.what exactly am I doing when I state $oIEI'm not sure what you mean by "when I state". $oIE is a special type of variable that holds an "object" reference. An object represents something like, in this case, a browser window. An object has properties and methods that allow you to manipulate it and perform actions on/with it. Please see the Obj/COM sectio of the helpfile for more information.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...
uPod Posted February 21, 2008 Author Share Posted February 21, 2008 Thanks for the info. I think I need to restate my question. I am working out of the helpfile. I actually get what the _IEFormElementGetObjByName does, but I can't seem to find the form elements in the HTML. Like I said before I can find the form names, but the element names seem to elude me, or rather I don't know what to search for in the HTML. Link to comment Share on other sites More sharing options...
DaleHohm Posted February 21, 2008 Share Posted February 21, 2008 There is no guarantee that they have names. If not, see _IEFormElementGetCollection. I also highly recommend DebugbBar (see my sig). 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...
uPod Posted February 21, 2008 Author Share Posted February 21, 2008 (edited) Thanks again Dale, and I really like the DebugBar, saves a lot of searching, haha. Well, I gotta get working on it, lemme see if I can figure this out. EDIT: I got it to work using _IEFormGetCollection and _IEFormElementGetCollection. Thanks for the help Dale. I'll be back though! Edited February 21, 2008 by uPod Link to comment Share on other sites More sharing options...
uPod Posted February 21, 2008 Author Share Posted February 21, 2008 Sorry to double post, I needed to bump it. Okay, I got all that stuff working, but when I try to submit a login form, it has two text boxes, _IEFormSubmit won't do anything. I mean that once it gets to that part of the code it just simply doesn't do anything. I could also click a button to submit. Now I'm not sure how to click a button though. I've tried the _IELinkClickByText and _IELinkClickByIndex. So how would one click a button using the IE Managment tools. I can't find many other "click" functions. Link to comment Share on other sites More sharing options...
DaleHohm Posted February 21, 2008 Share Posted February 21, 2008 Look at _IEAction click. 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...
uPod Posted February 21, 2008 Author Share Posted February 21, 2008 (edited) Thanks again Dale! I got it working! Oh and by the way, thanks to the Debug Bar I got the form element stuff down pat! Edited February 21, 2008 by uPod 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