![]() |
Control the media player with the cam focus button (multiple "gestures")
Here's a small Python script that monitors the cam focus button state and allows you to navigate through your music and play/pause it. Simply start it and then you can two-press to go to the next song, three-press to go to the previous song or four-press to toggle play/pause. The last press must be held until the action is carried out. This avoids accidental presses to be recognized.
Code:
# N900 focus button Media Player control |
Re: Control the media player with the cam focus button (multiple "gestures")
Can it be tuned so the script only loads when media player is running? And would it mess up if I have shortcutD installed.
Nifty script by the way. Wonder if the same can be done with the headphone remote button - multiple key presses. |
Re: Control the media player with the cam focus button (multiple "gestures")
This script is exactly what I've been looking for! Thank you so much!
Is there any way to allow this script to work while the screen is off? |
Re: Control the media player with the cam focus button (multiple "gestures")
Quote:
Cheers Bjoern |
Re: Control the media player with the cam focus button (multiple "gestures")
how about long press the volume button for next/prev track?
|
Re: Control the media player with the cam focus button (multiple "gestures")
Quote:
METHODS = [None, 'next', 'previous', 'pause'] just guessing, i know nothing about this. |
Re: Control the media player with the cam focus button (multiple "gestures")
Quote:
|
All times are GMT. The time now is 16:40. |
vBulletin® Version 3.8.8