What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Write a DWORD value in regedit

Write a DWORD value in regedit
Author: Message:
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. Write a DWORD value in regedit
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
07-22-2008 07:11 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Write a DWORD value in regedit
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




This post was edited on 07-22-2008 at 07:20 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-22-2008 07:14 PM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: Write a DWORD value in regedit
Ok, I have find solution :)
07-22-2008 07:20 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Write a DWORD value in regedit
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 :)

This post was edited on 07-22-2008 at 07:25 PM by SmokingCookie.
07-22-2008 07:21 PM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: Write a DWORD value in regedit
Thanks,

I don't knew the third parameter :-)
07-22-2008 08:17 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Write a DWORD value in regedit
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...

;)

This post was edited on 07-22-2008 at 08:24 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-22-2008 08:22 PM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: Write a DWORD value in regedit
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?
07-22-2008 09:22 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Write a DWORD value in regedit
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.

This post was edited on 07-22-2008 at 09:48 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-22-2008 09:42 PM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: Write a DWORD value in regedit
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

This post was edited on 07-24-2008 at 03:15 PM by Noixe.
07-23-2008 07:23 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Write a DWORD value in regedit
I also posted a registry module located here: http://shoutbox.menthix.net/attachment.php?pid=738349
07-23-2008 02:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On