A bit tuned version. There is no need to Grab keys with native HTC player
and BeyondPod. They shares Hold event as well. Plus my favorite method to
stop task - Abort Existing Task in collision setup with Stop-If action at
the beginning. So, now it rises volume while button held and stops when
released.
Two strange things (for Pent's attantion):
1. These profile and it's tasks are not catched in Run Log at all! Not
appears it %PACTIVE and %TRUN as well
2. Variable Add starts from non-zero and doesn't wrap, so VOLM rises to
maximum and stops.
Any suggestions?
Profile: vol (88)
State: Media Button [ Button:Play Held Down:On Grab:Off Stop Event:Off ]
State: Headset Plugged [ Type:Mic ]
Enter: s vol up (114)
Abort Existing Task
A1: Stop [ With Error:Off ] If [ %par1 ~ stop ]
<louder>
A2: Variable Add [ Name:%vol Value:1 Wrap Around:10 ]
A3: Media Volume [ Level:%vol Display:On Sound:Off ]
A4: Wait [ MS:300 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: Goto [ Type:Action Label Number:1 Label:louder ]
Exit: Anon (122)
A1: Perform Task [ Name:s vol up Stop:Off Priority:6 Parameter 1
(%par1):stop Parameter 2 (%par2): Return Value Variable: ]