WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get Selected IE7 Tab Title


Question:

How do I get the currently selected tab name deisplayed in Internet Explorer 7?

Answer:

I am not aware of any Tab Objects exposed by the Internet Explorer Object model. However this code can give you the curently selected tab title:
WM_GETTEXT = 13
AddExtender("wwctl44i.dll")
hWnd = DllHwnd("~Internet Explorer")
len=256 ; abritrary max len
buf=BinaryAlloc(len)
BinaryEodSet(buf,len)
ret = DllCall(StrCat(DirWindows(1),"user32.dll"), long:"SendMessageA", long:hWnd ,long:WM_GETTEXT, long:len, lpbinary:buf)
tabtitle = BinaryPeekStr(buf,0,ret)
Message("Currently Selected tab title", tabtitle)
Exit

Article ID:   W17222
File Created: 2007:07:03:14:28:54
Last Updated: 2007:07:03:14:28:54