*LoooL* ... sorry :D
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>RegDatabase Test</title>
<HTA:APPLICATION ID="oRegDBapp"
APPLICATIONNAME="RegDBapp"
BORDER="thick"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes">
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script type="text/jscript">
function doMyRegShit() {
var Sh = new ActiveXObject("WScript.Shell");
var key = "HKEY_CURRENT_USER\\"
Sh.RegWrite( key + "WSHTest\\", "testkeydefault");
Sh.RegWrite( key + "WSHTest\\string1", "testkeystring1");
Sh.RegWrite( key + "WSHTest\\string2", "testkeystring2", "REG_SZ");
Sh.RegWrite( key + "WSHTest\\string3", "testkeystring3", "REG_EXPAND_SZ");
Sh.RegWrite( key + "WSHTest\\int", 123, "REG_DWORD");
alert( Sh.RegRead(key + "WSHTest\\"));
alert( Sh.RegRead(key + "WSHTest\\string1"));
alert( Sh.RegRead(key + "WSHTest\\string2"));
alert( Sh.RegRead(key + "WSHTest\\string3"));
alert( Sh.RegRead(key + "WSHTest\\int"));
Sh.RegDelete(key + "WSHTest\\");
Sh = null;
}
</script>
</head>
<body>
<button onclick="doMyRegShit()">Kør noget RegSnask</button>
</body>
</html>