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

Pages: (2): « First « 1 [ 2 ] Last »
Starting an application
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Starting an application
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
01-07-2007 03:57 PM
Profile PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: Starting an application
Or maybe he's making a customizable list where you can add programs for you to quickly open *-).
[Image: sig.png]
01-07-2007 04:03 PM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: Starting an application
quote:
Originally posted by hmaster
Or maybe he's making a customizable list where you can add programs for you to quickly open *-).

Yes but that's also quicktext-able, just add a quicktext. For example, if you want to run notepad when you type "/notepad", just make a quicktext that sends "/run notepad" when you send "/notepad"...
01-07-2007 04:07 PM
Profile PM Find Quote Report
tobias
New Member
*


Posts: 5
Joined: Jan 2007
O.P. RE: Starting an application
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?
01-08-2007 01:32 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
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
tobias
New Member
*


Posts: 5
Joined: Jan 2007
O.P. RE: Starting an application
I have read the replies, and they both contain spaces, which is why I'm confused. I did read most of the documentation. I am using ChatWndSendMessage(). I'm not currently on my computer, I'm on a laptop at school with a broken spacebar, so sorry if I missed the spacing on any words.

On a side note, either I am not handling commands correctly, or they are not returned empty. I'll read that section again.

EDIT: The documentation is blocked at the school, so it will have to wait until I get home. :(

This post was edited on 01-08-2007 at 04:49 PM by tobias.
01-08-2007 04:46 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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