Sign in to follow this  
Followers 0
vkrisz81

how can i get title of ie tabs?

2 posts in this topic

#1 ·  Posted (edited)

Local $aIE[1]
$aIE[0] = 0

Local $i = 1, $oIE
While 1
    $oIE = _IEAttach("", "instance", $i)
    If @error = $_IEStatus_NoMatch Then ExitLoop
    ConsoleWrite(WinGetTitle("[INSTANCE: "& $i &"]") & @CRLF)
    ReDim $aIE[$i + 1]
    $aIE[$i] = $oIE
    $aIE[0] = $i
    $i += 1
WEnd

ConsoleWrite("Number of browser instances in the array: " & $aIE[0]&@CRLF)

i would like to reach tabs' title.. how can i point them? how can i reach them? because i can see the amount of all available tabs or windows but.. how can i see each one one by one?

(sry for my english level)

 

if i try use wingettitle("[active]") it always list the autoit windows title.. because of start it was the last active window!

Edited by vkrisz81

Share this post


Link to post
Share on other sites



ok i found the answer..

#include <IE.au3>
;~ #include <MsgBoxConstants.au3>

Local $aIE[1]
$aIE[0] = 0

Local $i = 1, $oIE
While 1
    $oIE = _IEAttach("", "instance", $i)
    If @error = $_IEStatus_NoMatch Then ExitLoop
    ConsoleWrite( _IEPropertyGet($oIE, "title") & @CRLF)
    ConsoleWrite( _IEPropertyGet($oIE, "locationurl") & @CRLF)
    ReDim $aIE[$i + 1]
    $aIE[$i] = $oIE
    $aIE[0] = $i
    $i += 1
WEnd

now it worsk fine! ty!

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