documentMode of HTMLFile is differ than HTMLFile activex

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

documentMode of HTMLFile is differ than HTMLFile activex

13 Dec 2017, 10:24

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
I cannot make document mode of HTMLFile activeX equal IE=9 and IE=10.
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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998, mikeyww, mmflume, scriptor2016, ShatterCoder and 96 guests