What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] MS Agent catching clicks

[Help] MS Agent catching clicks
Author: Message:
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: [Help] MS Agent catching clicks
deAd sort of explained why this works.

The thing is, the JScript parser that runs the code will create the functions and event functions before it makes the objects and does the rest of the code, so when it sees "function agent::Click"  (ie.  the event "Click" for the object "agent") it hasn't made the agent object, so it would complain that it is undefined.  However, if you put the function inside a variable, it's ignored and the event function isn't defined until you call the variable.  (The "Clicked();" bit)  And when you call the variable, it should be after the agent object is made, so it will understand it and not say it's undefined.

And according to the agent documentation those variables are what you said, yeah.  Though I don't think fwKeys is just the shift key, I think it has numbers to represent other keys like ctrl and such.  Can't remember where I saw that now though.
07-21-2006 03:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] MS Agent catching clicks - by BstrdSmkr on 07-20-2006 at 09:23 PM
RE: [Help] MS Agent catching clicks - by cloudhunter on 07-20-2006 at 10:48 PM
RE: RE: [Help] MS Agent catching clicks - by alexp2_ad on 07-20-2006 at 11:01 PM
RE: [Help] MS Agent catching clicks - by ddunk on 07-20-2006 at 10:57 PM
RE: [Help] MS Agent catching clicks - by cloudhunter on 07-20-2006 at 11:04 PM
RE: RE: [Help] MS Agent catching clicks - by alexp2_ad on 07-20-2006 at 11:06 PM
RE: [Help] MS Agent catching clicks - by cloudhunter on 07-20-2006 at 11:13 PM
RE: [Help] MS Agent catching clicks - by deAd on 07-20-2006 at 11:14 PM
RE: [Help] MS Agent catching clicks - by BstrdSmkr on 07-21-2006 at 03:30 PM
RE: [Help] MS Agent catching clicks - by alexp2_ad on 07-21-2006 at 03:40 PM
RE: [Help] MS Agent catching clicks - by BstrdSmkr on 07-21-2006 at 05:08 PM
RE: [Help] MS Agent catching clicks - by deAd on 07-21-2006 at 05:52 PM
RE: [Help] MS Agent catching clicks - by BstrdSmkr on 07-22-2006 at 02:53 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