Sign in to follow this  
Followers 0
uPod

I got some of the IE Management, But I need a bit more help

8 posts in this topic

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.

Share this post


Link to post
Share on other sites



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 $oIE

I'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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by uPod

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by uPod

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