Tasker 是一个十分全面的自动化工具,可以在装置内设定不同的 Tasks 并根据不同 Profile Events 去运行。最新 Tasker 就推出了 v5.11.14 更新,可以透过 Google Assistant 直接运行 Tasker Task。
只需要在 Google Assistant 讲 Ok Google, run my task in Tasker 就可以,当中 my task 就是在 Tasker 内 Task 的名称。例如 Tasker 内已设定了一个名为 “Wake my PC” task,只需要讲 OK Google, run Wake my PC in Tasker 就可以,Google Assistant 就会呼唤执行 Tasker 内的 Task。除了使用 run 这个字眼外,亦可以使用 start, do, set 和 send 字眼。
除了直接执行 Tasker 外,亦可以用于设定 Variable,只要说出 run my task with something and other,就会将 %par1 variable 设定为 something 而 %par2 variable 设定为 other。再进一步用家更可以设定 Assistant Action Event 再透过 Pattern Matching 拆解语音指令进行更多变化的操作。
不过要留意,受限于 Google Assistant App Actions,所以只可应用于英文操作。下面是 Tasker Google Assistant 的操作介绍影片。
除了支援 Google Assistant 执行 Task 之外,今次 5.11.14 更新亦有其他改进和修正。
– Removed alert that “Assistant Action” event was not working since it’s now working
– Added Assistant Actions video tip
– Fixed building apps with App Factory on some devices in some situations
– Fixed link to forum on Russian translation
– Made “alert()” function in javascript return which button was pressed
– Made “BT Connected” event able to select BT devices when being setup
– Added “GenerateUUID()” function to “Tasker Function” action
– Made it possible for users to use custom redirect URL in “HTTP Auth” action by sp ecifying it directly there
– Fixed issue where sometimes a notification would show up saying that Tasker was not authorized when that wasn’t the case
– Fixed license checking in Tasker in some situations
– Only use location permission in “Test Net” action if really needed
– Allow “Perform Task” action’s Parameter input fields to have more than one line of input
– Fix bug where sometimes when copying files to external SD card with uppercase extensions the wrong extension could be used in the destination file
– Fixed using Project/Profile/Task variables in Javascript in some situations
– Disallow using non-monitored built-in variables in “Variable State” state. Was allowing it by mistake
– Fix using invalid variable names in plugins in some situations
– Fix “Steps Taken” event on some devices
– Fixed small crashes