Jump to content

IE Automation


Generator
 Share

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Short answer is that I examined the HTML source... this was made much easier using the DebugBar tool you see in my sig...

With DebugBar, I just dragged the bullseye tool on top of the Reply button and it showed me the HTML tag that contained an id= or name=. I did the same with the submit button.

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

Short answer is that I examined the HTML source... this was made much easier using the DebugBar tool you see in my sig...

With DebugBar, I just dragged the bullseye tool on top of the Reply button and it showed me the HTML tag that contained an id= or name=. I did the same with the submit button.

Dale

Nice, i am sure it will be useful in most of the time. Thanks a bunch
Link to comment
Share on other sites

It does?

Yep. It is an optional component during the install however. It will be in yout tools menu if you installed it.

There are a lot of DOM inspectors available, some better than others... some MUCH better than others... some free, some not. I've included the ones I use and like with IE in my sig.

The DOM inspectors available for FireFox are typically free and are very useful.

Generator asked my how I figured out the information in the DOM for my reply earlier. I told him what I did and what I used to get it. I happen to like DebugBar because it integrates with IE, is free for personal use and has the features I need and more.

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

I see. I personally use FireBug, And Live HTTP Headers for my work with these types of things, But thats only because I prefer FF.

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

fyi i fricken love this script, very nice work.

edit: so i have a few suggestions the facebook funcs :)

1. well i already adapted a "login" func from ur first post but maybe you wanna make it a seperate one in ur first post.

2. logout

3. maybe a go to Events?

4. It would be very cool if there was a way to maybe detect your aim away msg then change ur status to be the same :P.

edit2: how do you get all the names of the boxes where you enter the information, i'm not quite sure how you do it, can you tell me how?

Edited by SleepyXtreme
Link to comment
Share on other sites

You should add these to the snippet database.

Yes, please do. There is a lot of useful, categorized stuff out there.

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

Hi,

I am looking for a script that will log on to a site via IE7 and then install the Certificate for that site.

I was trying a keyboard macro, but the little widget that pops up only accepts input from a mouse.

Any help would be appriciated.

OldDog

Link to comment
Share on other sites

fyi i fricken love this script, very nice work.

edit: so i have a few suggestions the facebook funcs :)

1. well i already adapted a "login" func from ur first post but maybe you wanna make it a seperate one in ur first post.

2. logout

3. maybe a go to Events?

4. It would be very cool if there was a way to maybe detect your aim away msg then change ur status to be the same ;).

edit2: how do you get all the names of the boxes where you enter the information, i'm not quite sure how you do it, can you tell me how?

Basically you examine the source, or use one of the DOM obj tool out there. Like FireBug for Firefox.

Also i created a nest loop for myself, comes in handly most of the time.

Fill in the website and the timeout, and change the text in the if statement if you want, it's for matching the form and the element.

How to use:

Use it go in a website

Wait for Msgbox to show up( which pauses the script ;))

Enter replying or the desire text

And then hit ok

It should show the # of collection of that form and the element.

#include<IE.au3>
$thread="http://www.facebook.com/"
$Time=5000

_ForumReply($thread,$Time)

Func _ForumReply($ThreadLink,$oTimeout)
    Local $oIE,$oForm,$oQuery,$o_Query
    _IEErrorHandlerRegister()
    _IELoadWaitTimeout($oTimeout)
    $oIE=_IECreate($ThreadLink,0,1,1)
    MsgBox(64,"Warning","Input text into element and click ok to continue")
    $oForm = _IEFormGetCollection ($oIE)
    $iNumForm=@extended
    For $i=0 to $iNumForm-1
        $oForm = _IEFormGetCollection ($oIE, $i)
        $oQuery = _IEFormElementGetCollection ($oForm)
        $iNumElement=@extended
        For $n=0 to $iNumElement-1
            $o_Query=_IEFormElementGetCollection($oForm,$n)
            If String(_IEFormElementGetValue($o_Query))="Replying" Then
                MsgBox(64,"Form: "&$i,"Element: "&$n)
            EndIf
        Next
    Next
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...