So I was bored tonight and thought I'd try and revive this project.
What I've got is still a work in progress, but it basically involves using Buttonremapper to reassign volume_up and volume_down to fast_forward and rewind, then use Tasker's 'state: media button pressed' to forbid any other apps from responding to those two buttons and have them act out Tasker tasks only.
One button is set to play/pause media (if screen is off) and raise volume (if screen is on) and the other set to skip forward media (if screen is off) and lower volume (if screen is on). The end result is almost full media control from hardware buttons without having to look at the phone or take it out of your pocket: use the volume up and down buttons to skip and pause tracks, or press power to turn the screen on and change their function to volume up or down temporarily before reverting back to skip and pause as the screen times out. You don't need to be looking at the screen while this is happening.
The problems at the moment are:
1) While two buttons have effectively been made into four, there are five necessary functions - volume up, volume down, play/pause, next track, previous track. I figured previous track was the least important but it would be nice to have it as well.
2) Normally the volume buttons in Android are context-sensitive, changing media or system or whatever volume depending on where you are. With this they're always assigned to media volume, so you'd need an app like Audiomanager or something to change the volume of other things.
3) Other problems that I haven't realised yet.
One other thing, Tasker's 'state: media button pressed' lets you set both long presses and short presses, but they don't seem to play nice together. I think both the long press and short press tasks activate and conflict when the button is held down, but I haven't had a look at this yet.
Good work! Would be nice to get this running cleanly on all devices, but I was surprised it didn't have more interest... Plus, my latest Oxygen ROM has long press volume up for skip track up/down and short press for volume up/down, so less of a need for me!
However, would like to get this sorted.
What I couldn't discover, is how the volume buttons are able to perform different actions when the screen was on/off. My hunting got me as far as the two files in this thread, which enable the OJ to function when the screen is off without kernel/ROM changes...
Once the .lib file is applied, the function of the OJ is easily adjusted, within curcial-oj.kl to a media action, I assume...
Anyway, all of that was heading away from a true Tasker project.... I'll check out your download over the weekend. I did previously use a double-click volume press that used current volume (prior to first press) /= original volume (on first press) +/- 1 skipped track and reverted the volume back to the original level! <- clumsy though...