![]() Script Always Stopped - 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: Script Always Stopped (/showthread.php?tid=92098) Script Always Stopped by Samo502 on 09-03-2009 at 03:34 PM No matter what i do to a(seemingly) simple script i'm trying as my first script it never runs! I've changed it based on every syntax error I can think of but it still won't run. code: RE: Script Always Stopped by matty on 09-03-2009 at 03:46 PM Well firstly the script is wrong. ChatWnd isn't defined anywhere. However that doesn't explain why the script is stopped. If you import someone elses script does it work? RE: Script Always Stopped by Samo502 on 09-03-2009 at 03:50 PM Other scripts work fine, and how is ChatWnd not defined its in the MsgPlus scripting documentation with a list of commands under it? RE: Script Always Stopped by matty on 09-03-2009 at 04:03 PM
quote:The ChatWnd object is inherited by certain actions you cannot just use it like that. You get access to the object by doing something like this for instance: js code: You can also enumerate any open conversation windows as well: js code: Make sense? RE: RE: Script Always Stopped by Samo502 on 09-03-2009 at 04:12 PM
js code:Coming from someone who knows a few different programming languages, I have never seen an object declared that way, or anything for that matter. I've only seen that method used to create a simpler way to type a long reference like code: RE: Script Always Stopped by Matti on 09-03-2009 at 04:37 PM
Since this seems to be a frequently asked question, I'll spend some time explaining this a bit more in depth...
![]() RE: Script Always Stopped by Samo502 on 09-03-2009 at 04:54 PM That does make a bit more sense because the thought did come to mind as to how it detects which window to send to, as for it being stopped I don't know. However I did get it running shortly after posting as I forgot to mention. RE: Script Always Stopped by Matti on 09-03-2009 at 05:01 PM
Good thing you figured that out yourself, that really is the best way of learning programming! RE: Script Always Stopped by Samo502 on 09-03-2009 at 05:34 PM Indeed it is, I based a script to send a custom announcement to my friends as they come online, now to learn XML and how to implement it.... (I'll spend some time with MsgPlus script before doing it though) |