Try this:
code:
new ActiveXObject("WScript.Shell").RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\MyKey",6,"REG_DWORD");
The first parameter of RegWrite is the key to write to, in this case MsgPlus.ScriptRegPath\Your@email.com\MyKey
The second parameter is the actual value, in this case 6
The third is the type you want to write, a DWORD.
Hope this helped you