Hide IE COM StatusBar

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: Hide IE COM StatusBar

17 Aug 2017, 11:35

Honestly not sure how you guys are getting that to work.. I've tried it, even made a timer to have it continually set it, didn't work for me.

Here is the solution I decided to run with (basic example):

Code: Select all

url:="http://google.com"
activeXStr:="about:<!DOCTYPE html><meta http-equiv=""X-UA-Compatible"" content=""IE=edge"">"
setWinDelay,0,0
fixIE(11)

gui,+resize
gui,margin,0,0
gui,add,activeX,w500 h500 vwb,% activeXStr
wb.silent:=1
wb.navigate(url)
gui,show,w500 h500,Web Client
return

guiClose:
gui,cancel
exitApp

guiSize:
guiControl,move,wb,% "w" . a_guiWidth . " h" . a_guiHeight
return
The resize doesn't quite keep up and you'll see the GUI background when expanding, but that's a minor thing. In this particular case, I didn't need Adblock to load in, but I made a separate function for that as well, which I do believe you can load in for every ActiveX object you have in the GUI:

Code: Select all

adBlock(activeXHwnd){
    try
        if ((BhoAbp := ComObjCreate("{FFCB3198-32F3-4E8B-9539-4324694ED664}", "{FC4801A3-2BA9-11CF-A229-00AA003D7352}")))
            DllCall(NumGet(NumGet(BhoAbp+0)+3*A_PtrSize), "Ptr", BhoAbp, "Ptr", ComObjValue(activeXHwnd))
    return BhoAbp
}
Thanks so much for the help guys, this will prove to be invaluable to me!
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Google [Bot], Joey5, ShatterCoder, Xaucy and 199 guests