Javascript: reading binary data from the registry
Today it became necessary to find out the vertical offset of the Windows taskbar from an HTA application using JavaScript.
The required value is located in HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ Desktop \ Components \ 0, the binary parameter Position.
The result is the following code: All this and much more in the HTA project HTAPrEx - HTA Remote Process Explorer
The required value is located in HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ Desktop \ Components \ 0, the binary parameter Position.
The result is the following code: All this and much more in the HTA project HTAPrEx - HTA Remote Process Explorer
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));