Shoutbox

Help Needed with script - 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: Help Needed with script (/showthread.php?tid=62312)

Help Needed with script by crank on 07-02-2006 at 11:50 AM

I'm getting crazy, i never really was excelletn at Jscript and for that reason i am stuck now. I have been working on a script that would do:

  1. Automaticly add random or static gradients to your messages
  2. Randomly add a single color to you messages
  3. Per contact options
  4. All contact options
  5. Saving in registry
    [/list]

    Most of that already works, but i can't make the GUI to work properly.
    One of the things i'm strugling with is that i can read a reg key but if it doesn't exist i get an error, so i'm using a txt to save which contacts have custom settings in the regisrty, and that sucks.
    I keep on getting errors so i'm looking for someone to help me.

    P.S. this is a tribute to Finn's xfade plugin hence the name FadeX.

RE: Help Needed with script by kender on 07-02-2006 at 12:02 PM

If i'm not wrong, in JScript there's a function called "try", that you can use with "catch" to get error and make your switches..

http://www.w3schools.com/js/js_try_catch.asp


RE: Help Needed with script by crank on 07-02-2006 at 12:04 PM

I'll try that thanks :)

Edit:
It fixed all the registry key errors, so thanksx1000 :p
now i got got a function that always says that a PlusWnd isn't defined whilst it is, if i finish that i can finish the script.


RE: Help Needed with script by RaceProUK on 07-02-2006 at 03:07 PM

quote:
Originally posted by crank
a function that always says that a PlusWnd isn't defined whilst it is
Check the scope of the variable: scoping issues are a major source of bugs ;)