| View previous topic :: View next topic |
| Author |
Message |
dwaynek
Joined: 20 Dec 2005 Posts: 61
|
Posted: Wed Nov 11, 2009 7:08 am Post subject: detect if itunes or windows media player is playing |
|
|
| is there a way to detect if itunes or windows media player is playing a song? |
|
| Back to top |
|
 |
TLM
Joined: 21 Aug 2006 Posts: 2926 Location: The Shell
|
Posted: Wed Nov 11, 2009 9:12 am Post subject: |
|
|
If you mean, is there a universal way to detect whether both applications are playing audio, probably not.
I'm pretty sure you will have to figure it out separately for both.
Is this what you mean? _________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞ |
|
| Back to top |
|
 |
darchon Guest
|
Posted: Wed Nov 11, 2009 10:41 am Post subject: |
|
|
| yes and no. it does answer half of my question as to whether there's a universal way but since there's not, i'd like a specific answer to itunes and windows media player. thanks for taking the time to answer though. |
|
| Back to top |
|
 |
TLM
Joined: 21 Aug 2006 Posts: 2926 Location: The Shell
|
Posted: Wed Nov 11, 2009 10:58 am Post subject: |
|
|
AFAICT this is the simplest way to tell if Itunes is playing.
| Code: | ControlGetText, plyStat, Button10, ahk_class iTunes
If plyStat Contains pause
msgbox, Itunes is playing.
else
msgbox, Itunes is not playing. | This works in Itunes 8.1.1.10.
Looking for a way to return the status of WMP .
edit:
Looks like your going to have to use COM to figure out wheter or not WMP is playing.
See here: http://www.autohotkey.com/forum/viewtopic.php?t=33686
IMO this is hell just to find out whether or not its playing and results will probably be OS and version dependent.
You could always cheat by getting the color of a pixel on the play button.
Good luck! _________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞ |
|
| Back to top |
|
 |
|