Jump to content

Get title from _IENavigate


Recommended Posts

Hi, I would like to know an example of how to get the title of a page from _IENavigate:

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

$GUI = GUICreate("", 800, 420)
$object = ObjCreate("Shell.Explorer.2")
$object_ctrl = GUICtrlCreateObj($object, 16, 10, 780, 400)

$oIE=_IENavigate($object, "http://www.autoitscript.com/site/")

WinSetTitle($GUI,"",$oIE);I need to take the title of the web page, to set the current window.

While 1
Link to comment
Share on other sites

you can use something like this for part of title (document title)

#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com")
MsgBox(0, "", _IEPropertyGet ($oIE, "title"))

to get full win title probably after it you can try to use some Win* commands and put _IEPropertyGet as particial title (include opt() to define title TextMatchMode if needed)

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

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...