Discussion:
VBS Script to pause Windows Media Player
(too old to reply)
s***@gmail.com
2016-04-23 10:37:56 UTC
Permalink
I'm looking for a simple VBS Script that will pause Windows Media Player when run in a command prompt window.

I tried looking for such a program (seems a simple enough idea) but everything I found just confused me more.

My plan is to use the Task Scheduler to intercept when my desktop locks, and automatically pause the player.

I already have most of this process in place; my Scheduler task runs a script that turns the display power off.
Gloops
2016-07-14 16:31:27 UTC
Permalink
Post by s***@gmail.com
I'm looking for a simple VBS Script that will pause Windows Media Player when run in a command prompt window.
I tried looking for such a program (seems a simple enough idea) but everything I found just confused me more.
My plan is to use the Task Scheduler to intercept when my desktop locks, and automatically pause the player.
I already have most of this process in place; my Scheduler task runs a script that turns the display power off.
Hello,

I wonder whether this can help ?

https://msdn.microsoft.com/en-us/library/windows/desktop/dd564264(v=vs.85).aspx

Otherwise I am afraid you have to send a sendkeys, in which case you can
need to know the state before it :

player.state

https://msdn.microsoft.com/en-us/library/windows/desktop/dd564085(v=vs.85).aspx
JJ
2016-07-15 01:50:17 UTC
Permalink
This post might be inappropriate. Click to display it.
Bryan Spillman
2016-07-16 12:12:20 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...