Code: Select all
oDoc := ComObjCreate("HTMLFile")
oDoc.Write("<!DOCTYPE html><head><meta http-equiv=""X-UA-Compatible"" content=""IE=9""></head>")
oDoc.Close()
msgbox % oDoc.documentMode
Gui, Add, ActiveX, w222 h222 voDoc, HTMLFile
Gui, Show
oDoc.Write("<!DOCTYPE html><head><meta http-equiv=""X-UA-Compatible"" content=""IE=9""></head>")
oDoc.Close()
msgbox % oDoc.documentMode
return
Only IE=5,7,8 works.
If I write in registry HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
autohotkey.exe value 11000, then HTMLFile activeX will work in IE=11 mode, but If I write value 9000 - HTMLFile activeX will work as earlier - in IE=8 mode.
Is it bug of autohotkey or mshtml.dll?
Win7. mshtm.dll version - 11.00.9600.18838