跳到主要内容

点击按钮 - 动作

使用场景

在我们日常生活中当你想听音乐但是不知道听什么类型的音乐,我猜你肯定会去使用音乐软件给你推荐的歌单这里的歌单并不是全部都是你喜欢的歌手我们可以使用点击按钮动作跳过一些不喜欢歌手。

1.jpg

功能演示

导入规则

{
"notificationChannels": [],
"packages": [
{
"id": 165,
"name": "音乐",
"packageName": "com.miui.player",
"type": 0,
"uid": 0
}
],
"rules": [
{
"actionSettings": [
{
"blackExec": true,
"delay": 0,
"event": 7,
"failedExec": false,
"lockExec": true,
"runDateRanges": "0, 1, 2, 3, 4, 5, 6",
"runRandomCount": 3,
"runRandomCountFail": 0,
"runTimeRanges": "",
"unlockExec": true
}
],
"barrage": {
"content": "$c_all",
"position": 0,
"speed": 5,
"subtitle": "$s_all",
"time": 2,
"title": "$t_all"
},
"broadcast": {
"scenes": [],
"text": ""
},
"clickButton": {
"buttonGroup": [
"切换下一首"
],
"suspendedTip": false,
"time": 0,
"tip": false,
"tipText": "$button"
},
"clickNotification": {
"suspendedTip": false,
"time": 0,
"tip": false,
"tipText": ""
},
"config": "{}",
"copy": {
"text": "",
"tip": false
},
"easyShares": [],
"event": [
7
],
"fixed": {
"channel": "",
"content": "$c_all",
"subtitle": "$s_all",
"title": "$t_all"
},
"openApps": [],
"output": {
"contentVariable": "// 内容变量\n$c_all \u003d (.+\\n*)+",
"subtitleVariable": "// 副标题变量\n$s_all \u003d (.+\\n*)+",
"titleVariable": "// 标题变量\n$t_all \u003d (.+\\n*)+"
},
"packageIds": [
165
],
"popup": {
"content": "$c_all",
"subtitle": "$s_all",
"title": "$t_all"
},
"range": [
1
],
"remove": {
"before": false,
"hour": 0,
"minute": 0,
"repeat": false,
"repeatHour": 1,
"repeatMinute": 0,
"second": 0
},
"ringtone": {
"path": "",
"playCount": 1,
"scenes": []
},
"rule": {
"delayRun": 0,
"isFixed": false,
"isUse": true,
"price": 0,
"rUid": "70ed494c-a5d1-43a6-aed4-7c78fb66d5a9",
"ruleButton": "",
"ruleButtonType": 0,
"ruleChannel": "",
"ruleChannelType": 0,
"ruleContent": "花僮",
"ruleContentType": 0,
"ruleDescription": "如果播放的音乐歌手是我不喜欢的歌手就切换下一首。",
"ruleMatchType": 1,
"ruleName": "点击按钮",
"ruleNotification": "",
"ruleNotificationType": 0,
"ruleSubTitle": "",
"ruleSubTitleType": 0,
"ruleTitle": "",
"ruleTitleType": 0,
"runDateRanges": "0, 1, 2, 3, 4, 5, 6",
"runRandomCount": 3,
"runRandomCountFail": 0,
"runTimeRanges": "",
"uuid": "b94d2a5c-d235-4fb0-8e1a-89fae2d1168c",
"versionCode": 0
},
"save": {
"config": "",
"location": 0
},
"share": {
"content": "$c_all",
"subtitle": "$s_all",
"title": "$t_all"
},
"shareToApp": {
"packageName": "",
"shareConfig": "[]",
"sharePath": "",
"uriAuthority": ""
},
"shareToServer": {
"method": "POST",
"shareDataConfig": "[]",
"shareHeaderConfig": "[]",
"url": "http://"
},
"shortcuts": [],
"testNotificationList": [],
"tip": {
"channel": "",
"content": "$c_all",
"subtitle": "$s_all",
"title": "$t_all"
},
"toast": {
"text": "$t_all $s_all $c_all"
},
"vibration": {
"count": 1,
"scenes": [],
"times": ""
}
}
],
"versionCode": 35,
"versionName": "3.5.10"
}

创建规则

2.1.jpg

2.2.jpg

2.3.jpg

2.4.jpg