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
-----------------------------------------------------
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.