What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » verify presence registry key

verify presence registry key
Author: Message:
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. verify presence registry key
Hi!
if the registry key don't exist and i use shall.regRead the script create an error.
how can verify the presence of registry key?
thank, bye!
04-25-2008 06:07 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: verify presence registry key
Try this one ;)
code:
var boolEnabled = false; // default value
try {
    boolEnabled = new ActiveXObject("WScript.Shell").RegRead(MsgPlus.ScriptRegPath + "\\SomeEntry");
}
catch( e ) {
    // error handling ;)
}
// use boolEnabled here with either default value or read value

This post was edited on 04-25-2008 at 06:13 PM by mynetx.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
04-25-2008 06:13 PM
Profile E-Mail PM Web Find Quote Report
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. RE: verify presence registry key
VERY VERY THANK!
THANK FOR SPEED TOO!
bye :)
04-25-2008 06:15 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