Skip to content

Instantly share code, notes, and snippets.

View czeyka's full-sized avatar

Sascha Czeyka czeyka

View GitHub Profile
@jethrow
jethrow / IEGet.ahk
Last active February 14, 2020 09:30
; AutoHotkey_L:
IEGet(name="") {
IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame ; Get active window if no parameter
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 and InStr(WB.FullName, "iexplore.exe")
return WB
}