Jump to content

Most direct way to terminate a program (Media Player)


Recommended Posts

Guest csc12345678
Posted

I have this requirement. I want to be able to stop (or pause) Media Player from playing immediately without having to bring up WMP and they press a button to stop it. The reason: I sometimes play some MP3 on the speaker. When somebody approaches me to talk to me, I don't want to ask the person to wait while I navigate through the screens to stop WMP. I just want to press some buttons (I'm thinking of the "Volume Down" button) and hold it and it stops WMP playing so that I can speak to the person. I can of course press the volume down till it's volume zero, but WMP continues playing. So if I'm engaged with the person for sometime, I will forget to stop it and it would then drain the battery.

I thought of some idea. Hope somebody can help me build further on them so that I can make this possible.

1. Are there any command line parameter for WMP ? If so, can I program a key to start WMP with this command line parameter to stop it playing.

2. Is it possible to buiild some scripts to bring up WMP and stop it. I can then program it to a speedial or AE Button Plus.

3. Is there any utility that can terminate another program via command line ? eg I run utility x with a parameter so that x will terminate it ?

I'm also trying out AE Button Plus to program the "volume down" button so that I can hold it and stop WMP. Possible ?

Thanks for your help !

Guest csc12345678
Posted

I manage to write a mortscript to close("Windows Media") and I've assigned it to a speed dial. However, I can't assigned it to AE Button. It seems like AE Button does not start the script as it does not support file association.

My question is: Does mortscript support command line ? Am I able to start mortscript followed by a script name ?

The manuals does not mentioned command line. THanks for your help.

I have this requirement. I want to be able to stop (or pause) Media Player from playing immediately without having to bring up WMP and they press a button to stop it. The reason: I sometimes play some MP3 on the speaker. When somebody approaches me to talk to me, I don't want to ask the person to wait while I navigate through the screens to stop WMP. I just want to press some buttons (I'm thinking of the "Volume Down" button) and hold it and it stops WMP playing so that I can speak to the person. I can of course press the volume down till it's volume zero, but WMP continues playing. So if I'm engaged with the person for sometime, I will forget to stop it and it would then drain the battery.

I thought of some idea. Hope somebody can help me build further on them so that I can make this possible.

1. Are there any command line parameter for WMP ? If so, can I program a key to start WMP with this command line parameter to stop it playing.

2. Is it possible to buiild some scripts to bring up WMP and stop it. I can then program it to a speedial or AE Button Plus.

3. Is there any utility that can terminate another program via command line ? eg I run utility x with a parameter so that x will terminate it ?

I'm also trying out AE Button Plus to program the "volume down" button so that I can hold it and stop WMP. Possible ?

Thanks for your help !

Guest gpcarreon (MVP)
Posted
Am I able to start mortscript followed by a script name ?

A shortcut might help...

XX#"\Path\to\MortScript.exe" \Path\to\Script.mscr
This works for me...
00#"\Storage Card\Program Files\MortScript\MortScript.exe"  \Temp\Test.mscr

Guest csc12345678
Posted

Thanks a lot. It works now with AE Button Plus. Thanks again. I've received a lot of help from you. Very much appreciated.

A shortcut might help...

XX#"\Path\to\MortScript.exe" \Path\to\Script.mscr
This works for me...
00#"\Storage Card\Program Files\MortScript\MortScript.exe"  \Temp\Test.mscr

Guest gpcarreon (MVP)
Posted

You are most welcome. Always happy to help. ;)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.