Shoutbox

Write a DWORD value in regedit - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Write a DWORD value in regedit (/showthread.php?tid=84969)

Write a DWORD value in regedit by Noixe on 07-22-2008 at 07:11 PM

Hello,

how can I write a DWORD value in the register of windows?

I try:

new ActiveXObject('WScript.Shell').RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\MyKey", "dword:00000006");

but it create a string value.

Thanks


RE: Write a DWORD value in regedit by CookieRevised on 07-22-2008 at 07:14 PM

Because
1) You entered a string (notice the quotes you used)
2) You have the parameters all wrong

Though, I'm not going to spoonfeed you as this is very basic scripting.
Instead I suggest you check out the Windows Scripting helpfile > Index > RegWrite method.

It gives you a detailed description, including an example.

;)


PS: Plus! scripting is done in JScript




RE: Write a DWORD value in regedit by Noixe on 07-22-2008 at 07:20 PM

Ok, I have find solution :)


RE: Write a DWORD value in regedit by SmokingCookie on 07-22-2008 at 07:21 PM

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 :)
RE: Write a DWORD value in regedit by Noixe on 07-22-2008 at 08:17 PM

Thanks,

I don't knew the third parameter :-)


RE: Write a DWORD value in regedit by CookieRevised on 07-22-2008 at 08:22 PM

quote:
Originally posted by Noixe
Thanks,

I don't knew the third parameter :-)
Hence why I said:
quote:
Originally posted by CookieRevised
I'm not going to spoonfeed you
.....
I suggest you check out the Windows Scripting helpfile > Index > RegWrite method.

It gives you a detailed description, including an example.
I posted that for a reason..... :dodgy:


I STRONGLY suggest you check out help files in the futur instead of copy/pasting code...

;)
RE: Write a DWORD value in regedit by Noixe on 07-22-2008 at 09:22 PM

I know the mean of that instruction, it's not a simply "copy and paste". However I have visited the link... but I must install SilverLight?


RE: Write a DWORD value in regedit by CookieRevised on 07-22-2008 at 09:42 PM

quote:
Originally posted by Noixe
I know the mean of that instruction, it's not a simply "copy and paste".
Apparently you didn't knew the RegWrite method that well, according to your first post and this post...

quote:
Originally posted by Noixe
However I have visited the link... but I must install SilverLight?
errr.... what??? Now you've lost me I'm afraid :(.... You don't need SilverLight for anything...

You just need to download the Windows Scripting Documentation helpfile, open it up, and search for the function you want some info on.


PS: what you might need to do is proof that your Windows version is genuine by installing the the small Windows Genuine Advantage plug-in, or as an alternative, by running the GenuineCheck program (so you don't even need to install anything), before you download the help file. Nothing todo with SilverLight though.
RE: Write a DWORD value in regedit by Noixe on 07-23-2008 at 07:23 AM

The site asked to install a ActiveX and it carried me to the page of SilverLight.

Moreover it ask a test to see if windows is original…

Can you send me the chm file?

If you can't, I will search the guide on emule.

Thanks


RE: Write a DWORD value in regedit by matty on 07-23-2008 at 02:23 PM

I also posted a registry module located here: http://shoutbox.menthix.net/attachment.php?pid=738349