![]() |
2008-07-29
, 03:17
|
|
Posts: 43 |
Thanked: 12 times |
Joined on Jun 2008
@ Winnpeg, MB, CAN
|
#2
|
![]() |
2008-07-29
, 10:44
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#3
|
![]() |
2008-07-31
, 13:36
|
|
Posts: 43 |
Thanked: 12 times |
Joined on Jun 2008
@ Winnpeg, MB, CAN
|
#4
|
![]() |
2008-07-31
, 13:47
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
This python script will pause and play both mplayer and canola(and probably others) regardless of whether or not the media player is the active window(i.e. can be minimized.)
The main bit of the script is from http://www.bitsmithy.net/.
The other bit is from qwerty12 from this thread.
1. Copy this code to a file.
3. cd to directory you copied to.
'cd /media/mmc1'
4. in console type:
This should work. python was installed with canola for me i believe. Should not be to difficult to get it if you dont have it.
Im working on a solution to have the on_button_pressed function use python to send the pause method rather than use the commandline way with os.system. If you can get it working that way, please do. Then please be sure to post it back here for everyone to enjoy.
Eric