Today it became necessary to find out the vertical offset of the Windows taskbar from an HTA application using JavaScript. The required value is in HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ Desktop \ Components \ 0, binary parameter Position.
The result is the following code: var wsh = new ActiveXObject("WScript.Shell"); var key = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Desktop\\Components\\0\\Position"; var regdata=wsh.RegRead(key) var retval=parseInt('0x'+regdata.getItem(17).toString(16)+regdata.getItem(16).toString(16));