Jump to content

_IEProperty get troubles

Recommended Posts

I want to get the text of a link and give it a variable when I press a button within an embedded IE. I know this involves _IEPropertyget, but I don't know specifically how to do it. This is what I have so far:

#include <GUIconstantsEX.au3>
#include <IE.au3>
#include <GUIConstants.au3>

GUICreate("Triond Friender", 980, 600)
$GUIACTIVEX = GUICtrlCreateObj($OIE, 170, 5, 660, 590)
$SHELLOBJECT = ObjCreate("Shell.Explorer.2")
Global $BUTTON_COLLECT = GUICtrlCreateButton("Start", 5, 5, 80, 100)

While 1
    $msg = GUIGetMsg()
            Case $msg = $BUTTON_COLLECT
        _IEPROPERTYGET($OIE, "(inner/outer)text?")
Link to comment
Share on other sites

Did you try the example script under _IECreateEmbedded()? Your example certainly will not run at all in that state. Your $OIE is never declared or set to anything, while $SHELLOBJECT is created but never used.

You've got the right idea to create a GUI button, and take an action when the button is pushed, though the GUI will not be visible to click on because you never used GuiSetState(). Start from the basic tutorials in the help file and get a good foundation in AutoIt.


Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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

  • Recently Browsing   0 members

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