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
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
}