What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Starting an application

Starting an application
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Starting an application
quote:
Originally posted by tobias
Okay, I was able to get iTunes to work with this:

_start_app('C:\\Program Files\\iTunes\\iTunes.exe');

but Photoshop won't:

_start_app('C:\\Program Files\\Adobe\\Photoshop CS\\Photoshop.exe');

Any ideas why?

read the replies:
especially http://shoutbox.menthix.net/showthread.php?tid=70...d=775535#pid775535

But also note:
quote:
Originally posted by deAd
It looks like what you're trying to do is run programs based on commands?

This can already be done with the /run command and a quicktext :P


-----------------------------------------------------

quote:
Originally posted by tobias
P.S. I know you don't like people using ! commands, but I can't figure out how to get my commands on the / list.
This is a very big misconception...

Both things (having "/" commands, and showing up your commands in the command list window) have got nothing todo with eachother. It is not because your commands are listed in the command list window that they are reconized by Plus! as commands. And vice versa, it is not because your script handles some "/" commands that they are listed in the command list window.

The command list window is nothing more than a list of some text, nothing else.

Again: both things are totally unrelated.

- You can list whatever you want in the command list window using the OnGetScriptCommands() function (though, the text will always be prefixed with "/", eventhough you use "!").

- You can catch whatever you want to trigger something in the ChatWndSendMessage event.

Please read the documentation before you start to script, and use it regulary during scripting to look things up. Even for stuff you take for granted. And especially when people give you example code: look up every used statement, function and used method before you implement it so that you fully understand what it does, what it can't do, why it is used and what the implications are. Copying from others will also mean you could copy possible errors...

;)

---

To list commands in the command list window, see hmaster's post (and the scripting documentation).

To use proper "/" commands instead of "!" commands, do as you normally would. There is absolutely no difference at all*!!! (and see the scripting documentation).

* And that is to be taken literally. There is no difference.
A properly written ChatWndSendMessage() function should always return an empty string if a command is parsed and handled by your script. No matter how it is formatted, what command you use, what prefix you use or whatever else. Thus this goes for "!" commands too... hence why there is no difference at all.

This post was edited on 01-08-2007 at 08:19 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 08:09 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Starting an application - by tobias on 01-07-2007 at 05:21 AM
RE: Starting an application - by Ash_ on 01-07-2007 at 07:14 AM
RE: Starting an application - by matty on 01-07-2007 at 07:15 AM
RE: Starting an application - by tobias on 01-07-2007 at 01:52 PM
RE: RE: Starting an application - by CookieRevised on 01-08-2007 at 08:09 AM
RE: Starting an application - by hmaster on 01-07-2007 at 02:38 PM
RE: Starting an application - by tobias on 01-07-2007 at 03:32 PM
RE: Starting an application - by foaly on 01-07-2007 at 03:34 PM
RE: Starting an application - by hmaster on 01-07-2007 at 03:41 PM
RE: Starting an application - by Eljay on 01-07-2007 at 03:52 PM
RE: Starting an application - by hmaster on 01-07-2007 at 03:55 PM
RE: Starting an application - by deAd on 01-07-2007 at 03:57 PM
RE: Starting an application - by hmaster on 01-07-2007 at 04:03 PM
RE: RE: Starting an application - by deAd on 01-07-2007 at 04:07 PM
RE: Starting an application - by tobias on 01-08-2007 at 01:32 AM
RE: Starting an application - by tobias on 01-08-2007 at 04:46 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