Shoutbox

Need a little help with msdn help files - 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: Need a little help with msdn help files (/showthread.php?tid=64720)

Need a little help with msdn help files by Dauntless on 08-09-2006 at 10:32 PM

Hi,

A few days ago I found out that you could write your own scripts for Msg+. I found this verry interesting so I took a go at it...

Now, I'm a fairly good Flash-Developer and Flash uses ActionScript, which is (syntax-wise) a lot like JavaScript / JScript.

Normally, I can easily figure things out for myself, using the helpfiles. The problem is: I just can't work with those msdn help files :S.


As my second script (my first was a simple /doSomething command), I wanted to write a little count down. Like: "5", "4", "3", "2", "1", "Happy newyear". (With a few seconds between every message).

I searched around a little and I found that this could be done with 'AddTimer' and 'OnTimer' (or atleast, that should give me a starting point).

So, first, I open up the msdn JScript reference (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/4a29a831-41c9-4843-9385-c3879e385585.asp) Since a Timer wouldn't be a method of an object, I clicked 'functions'. To my regret, there were only a few functions there... nothing about a timer class / function.

I also searched through the classes and methods, but I can't find anything about a timer. I also did a search for 'AddTimer', but that gave me some results about a CWorkerThread and CNoWorkerThread class. (And those are classes from the Visual C++ libraries or ATL Server).

I can't find out how to do a proper search (only within the JScript language reference) and I really can't find anything about a timer in the language references.

If you've read untill this point: Thank you! And it would even be nicer if someone could tell me how those damn msdn helpfiles work... (It would save you a lot of time, since I wouldn't be asking questions if I could find it for myself).

Ps: I've also used Visual Studio (with VBA I think) and those were also msdn helpfiles. Those helpfiles were crappy too, but at least they were more clear then these JScript help files...

Any thoughts please?? :)

Greets,
Dauntless


RE: Need a little help with msdn help files by andrey on 08-09-2006 at 10:39 PM

You won't find any reference to AddTimer and OnEvent_Timer in msdn, as they are parts of the Messenger Plus! Live Scripting System.

You can download the official MsgPLus! Live Scripting Documentation here:
http://www.msgpluslive.net/scripts/browse/index.php?act=view&id=13


RE: Need a little help with msdn help files by Dauntless on 08-09-2006 at 10:41 PM

Hmm, I have those... But you can't tell me that JScript doesn't have ANY way to use intervals or something ?


RE: Need a little help with msdn help files by matty on 08-10-2006 at 03:22 AM

SetTimer / KillTimer

8-) You can research this online you know.


RE: RE: Need a little help with msdn help files by Dauntless on 08-10-2006 at 07:55 AM

quote:
Originally posted by Matty
SetTimer / KillTimer

8-) You can research this online you know.

I just told you I'm having troubles finding stuff in those helpfiles... How can you do a search within the JScript language refference?
RE: Need a little help with msdn help files by Mnjul on 08-10-2006 at 08:08 AM

quote:
Originally posted by Matty
SetTimer / KillTimer

8-) You can research this online you know.
Would you tell me how to use them to call back JScript functions? :O
RE: RE: Need a little help with msdn help files by Dauntless on 08-10-2006 at 08:39 AM

quote:
Originally posted by Mnjul
quote:
Originally posted by Matty
SetTimer / KillTimer

8-) You can research this online you know.
Would you tell me how to use them to call back JScript functions? :O

See, thats exactly the problem: If you search on msdn, it returns hits from ALL of msdn, not just JScript ...
RE: Need a little help with msdn help files by matty on 08-10-2006 at 12:45 PM

quote:
Originally posted by Mnjul
quote:
Originally posted by Matty
SetTimer / KillTimer

8-) You can research this online you know.
Would you tell me how to use them to call back JScript functions? :O
Setup a loop for PeekMessageW and read the messages that way? :refuck: I will try and write an example later I am tired and just woke up.

Let me clear some stuff up for you tho. Anything you find in the scripting documentation your not going to find on MSDN as they are custom events. It is very hard to setup a call back function or use timers in Jscript. That is why there is the OnEvent_Timer(sTimerId){} function.