Tasker 質問スレ 17at ANDROID
Tasker 質問スレ 17 - 暇つぶし2ch435:名無しさん@お腹いっぱい。
18/03/15 07:49:41.00 2xqWiGLX.net
scene上のelement(+/-)をタップしたとき、二度目以降のタップでメディアボリュームを上下する
650msでタップ前に戻る
Media Volumeが複数あるのは速度が欲しかった
CTRL (95)
Abort Existing Task
A1: If [ %volume_step !~R ^\% ]
A2: Goto [ Type:Action Label Number:1 Label:WAIT ] If [ %event_type ~R ^S ]
A3: Variable Set [ Name:%volume_change To:%VOLM%element_name%volume_step Recurse Variables:Off Do Maths:On Append:Off ]
A4: If [ %volume_change ~R ^- ]
A5: Element Text [ Scene Name:%scene_name Element:X Position:Replace Existing Text:0 Selection: ]
A6: Media Volume [ Level:0 Display:Off Sound:Off ]
A7: Else If [ %volume_change < 16 ]
A8: Element Text [ Scene Name:%scene_name Element:X Position:Replace Existing Text:%volume_change Selection: ]
A9: Media Volume [ Level:%volume_change Display:Off Sound:Off ]
A10: Else If [ %volume_change < 21 ]
A11: Element Text [ Scene Name:%scene_name Element:X Position:Replace Existing Text:15 Selection: ]
A12: Media Volume [ Level:15 Display:Off Sound:Off ]
A13: End If
A14: Else If [ %event_type !~R ^S ]
A15: Element Text [ Scene Name:%scene_name Element:+ Position:Replace Existing Text:+ Selection: ]
A16: Element Text [ Scene Name:%scene_name Element:- Position:Replace Existing Text:- Selection: ]
A17: Variable Set [ Name:%volume_step To:1 Recurse Variables:Off Do Maths:On Append:Off ]
A18: Element Text [ Scene Name:%scene_name Element:X Position:Replace Existing Text:%VOLM Selection: ]
A19: Else
A20: Element Text [ Scene Name:%scene_name Element:+ Position:Replace Existing Text:++ Selection: ]
A21: Element Text [ Scene Name:%scene_name Element:- Position:Replace Existing Text:-- Selection: ]
<[2:5]>
A22: Variable Set [ Name:%volume_step To:3 Recurse Variables:Off Do Maths:On Append:Off ]
A23: Element Text [ Scene Name:%scene_name Element:X Position:Replace Existing Text:%VOLM Selection: ]
A24: End If
<WAIT>
A25: Wait [ MS:650 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A26: Variable Clear [ Name:%volume_step Pattern Matching:Off Local Variables Only:On ]
A27: Element Text [ Scene Name:%scene_name Element:- Position:Replace Existing Text:< Selection: ]
A28: Element Text [ Scene Name:%scene_name Element:+ Position:Replace Existing Text:> Selection: ]


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch