IEGet TitleMatchMode Issue

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Trigg
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.
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

User avatar
tank
Posts: 3122
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
Trigg
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 (v1)”

Who is online

Users browsing this forum: Holarctic, jameswrightesq, wpulford and 414 guests