IEGet TitleMatchMode Issue

Get help with using AutoHotkey and its commands and hotkeys
Posts: 97
Joined: 07 Apr 2017, 19:43

IEGet TitleMatchMode Issue

17 Aug 2017, 10:49

I am using Jethrow's IEGet, but I need the full window title to use it. I tried SetTitleMatchMode but it does not work. Any suggestions?

Code: Select all

If !IsObject(SymLog)
	SymLog := IEGet("Website")		;  SymLog := IEGet("Website - Login")	      <- With or without SetTitleMatchMode only this works.

IEGet(Name="")        ;Retrieve pointer to existing IE window/tab
	SetTitleMatchMode, 1

    IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame
        Name := ( Name="New Tab - Windows Internet Explorer" ) ? "about:Tabs"
        : RegExReplace( Name, " - (Windows|Microsoft) Internet Explorer" )
    For wb in ComObjCreate( "Shell.Application" ).Windows
        If ( wb.LocationName = Name ) && InStr( wb.FullName, "iexplore.exe" )
            Return wb
} ;written by Jethrow

User avatar
Posts: 2855
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Irving TX

Re: IEGet TitleMatchMode Issue

17 Aug 2017, 12:59

If (instr(wb.LocationName, Name ) && InStr( wb.FullName, "iexplore.exe" ))
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
If you have forum suggestions please submit a pull request
Check Out WebWriter
Thanks Tank :thumbup:
Posts: 97
Joined: 07 Apr 2017, 19:43

Re: IEGet TitleMatchMode Issue

17 Aug 2017, 14:13

tank wrote:If (instr(wb.LocationName, Name ) && InStr( wb.FullName, "iexplore.exe" ))
You are a gentleman and a scholar. Thank you tank!

Return to “Ask For Help”

Who is online

Users browsing this forum: Aceful, Albireo, bazkeys, Bing [Bot], bmb, dhwlsfldu, digidings and 41 guests