Page 1 of 1

IEGet TitleMatchMode Issue

Posted: 17 Aug 2017, 10:49
by Trigg
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.
SymLog.document.getelementbyid("submitLogin").Click()
Return


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


Re: IEGet TitleMatchMode Issue

Posted: 17 Aug 2017, 12:59
by tank
If (instr(wb.LocationName, Name ) && InStr( wb.FullName, "iexplore.exe" ))

Re: IEGet TitleMatchMode Issue

Posted: 17 Aug 2017, 14:13
by Trigg
tank wrote:If (instr(wb.LocationName, Name ) && InStr( wb.FullName, "iexplore.exe" ))
You are a gentleman and a scholar. Thank you tank!