3

外部Intent调用Tasker

 2 years ago
source link: https://www.modeng.xyz/2021/11/12/%E5%A4%96%E9%83%A8Intent%E8%B0%83%E7%94%A8Tasker/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

1.shell命令(未测试)

am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -e task_name myaction

2.Activity(即模拟桌面快捷方式调用tasker任务)

包名:net.dinglisch.android.taskerm
类名:.IntentHandler
Intent Action:net.dinglisch.android.taskerm.WIDICKYUM
Intent Extras:
                mcro:   <Task sr="">
                            <Action sr="act0"ve="7">
                                <Str sr="arg0"ve="3">task_name</Str>
                                <Int sr="arg1"val="7"/>
                                <Str sr="arg2"ve="3"/>
                                <Str sr="arg3"ve="3"/>
                                <Str sr="arg4"ve="3"/>
                                <Int sr="arg5"val="1"/>
                                <Int sr="arg6"/>
                                <Str sr="arg7"ve="3"/>
                                <Int sr="arg8"/>
                                <Int sr="arg9"/>
                                <code>130</code>
                            </Action>
                        </Task>

需要修改extras中task_name为任务名称。



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK