What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » writing text in registry?

writing text in registry?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: writing text in registry?
quote:
Originally posted by PedroGabriel
why i Can't use here
Javascript code:
function Write(){
    //Shell.RegWrite(varPath, ''+Origin+'asdsd');
}


Origin is not defined in the scope of Write. You could make the value to write a parameter of the Write function so that you can pass in the value where you call the function.

Javascript code:
function Write( Value ){ // Value is received as first parameter
    Shell.RegWrite( varPath, Value ); // We can use it here
}
 
function OnEvent_ChatWndReceiveMessage( ChatWnd, Origin, rMessage, MsgKind ){
    if ( rMessage == 'aaa' ){
        Write( Origin+'asdsd' ); // Passing a string as first parameter
    }
}

I suggest you first learn some more about the JScript language before diving in Plus! scripting, have a look at this tutorial on MSDN.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-14-2010 08:34 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
writing text in registry? - by PedroGabriel on 08-13-2010 at 09:16 PM
RE: writing text in registry? - by whiz on 08-13-2010 at 09:40 PM
RE: writing text in registry? - by matty on 08-13-2010 at 09:41 PM
RE: RE: writing text in registry? - by PedroGabriel on 08-13-2010 at 09:59 PM
RE: writing text in registry? - by matty on 08-14-2010 at 01:33 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 01:43 AM
RE: writing text in registry? - by matty on 08-14-2010 at 02:09 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 02:17 AM
RE: writing text in registry? - by Matti on 08-14-2010 at 08:34 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 09:47 PM


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