What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need a little help with msdn help files

Need a little help with msdn help files
Author: Message:
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. Need a little help with msdn help files
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
08-09-2006 10:32 PM
Profile E-Mail PM Web Find Quote Report
andrey
elite shoutboxer
****

Avatar

Posts: 795
Reputation: 48
– / Male / Flag
Joined: Aug 2004
RE: Need a little help with msdn help files
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
[Image: w2kzw8qp-sq2_dz_b_xmas.png]
08-09-2006 10:39 PM
Profile PM Find Quote Report
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: Need a little help with msdn help files
Hmm, I have those... But you can't tell me that JScript doesn't have ANY way to use intervals or something ?
08-09-2006 10:41 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Need a little help with msdn help files
SetTimer / KillTimer

8-) You can research this online you know.
08-10-2006 03:22 AM
Profile E-Mail PM Find Quote Report
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: RE: Need a little help with msdn help files
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?
08-10-2006 07:55 AM
Profile E-Mail PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Need a little help with msdn help files
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
08-10-2006 08:08 AM
Profile PM Web Find Quote Report
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: RE: Need a little help with msdn help files
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 ...
08-10-2006 08:39 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Need a little help with msdn help files
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.

This post was edited on 08-10-2006 at 12:54 PM by matty.
08-10-2006 12:45 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