
tasker使用手冊

Tasker is a powerful app for Android that lets you customize how your phone works and automate tasks. Unfortunately, it’s got a bit of a learning curve. We’re here to show you how to get started and turn your phone into a flashlight in the process.
Tasker是一款功能強大的Android應用,可讓您自定義手機的工作方式并自動執行任務。 不幸的是,這需要學習。 我們在這里向您展示如何開始使用以及如何將手機變成手電筒。
Tasker is a great tool for generating “tasks,” a series of instructions carried out in certain contexts and in response to certain events. Tasker is available from the Android Market, but it’s slightly cheaper if you buy directly from their site. It has a 7-day free trial, includes free future updates, and you can buy it once and use it on multiple devices.
Tasker是生成“任務”的好工具,“任務”是在某些情況下并響應某些事件而執行的一系列指令。 Tasker可從Android Market購買,但如果直接從其網站購買,價格會便宜一些。 它有7天的免費試用期,包括將來的免費更新,您可以購買一次并在多種設備上使用。
Tasker ($2.99, Android Market)
Tasker($ 2.99,Android電子市場)
Tasker (GBP 3.49, Tasker website)
塔斯克(GBP 3.49,塔斯克網站)
Tasker FAQ (Purchasing info, free updates, etc.)
Tasker常見問題解答(購買信息,免費更新等)
For the purposes of this article, we’ll walk you through how to create a profile, set a context, and create a task. If your phone has a camera LED, then you can turn your phone into a flashlight/reading lamp by following along. The way it’ll work is that when you’re on your home screen, you can turn on the camera LED by turning your phone face down (via triggering the proximity sensor), and it’ll turn off when you turn it back over.
出于本文的目的,我們將引導您逐步了解如何創建配置文件,設置上下文和創建任務。 如果您的手機帶有攝像頭LED,則可以按照以下步驟將手機變成手電筒/臺燈。 它的工作方式是,當您在主屏幕上時,可以通過將手機正面朝下(通過觸發接近傳感器)來打開攝像頭LED,并在將其翻轉過來時將其關閉。 。
Once you’ve got Tasker installed, tap its icon to launch it. You’ll see a list of profiles by default. Profiles are set up to have specific contexts, such as when X app is running, at X/Y GPS coordinates, or when Y button is pressed. When these conditions are met, a list of tasks is executed. You can also configure exit tasks, things that are done after the contexts are removed.
安裝Tasker后,點擊其圖標以啟動它。 默認情況下,您會看到一個配置文件列表。 配置文件被設置為具有特定的上下文,例如運行X app時,X / Y GPS坐標下或按Y按鈕時。 當滿足這些條件時,將執行任務列表。 您還可以配置退出任務,這些任務是在除去上下文之后完成的。

You can see I’ve got a few, but yours will be blank. Tap “New” to create a new Profile. Let’s give it a name like “Upside Down LED.”
您可以看到我有幾個,但是您的空白。 點擊“新建”以創建新的配置文件。 讓我們給它起一個類似“顛倒的LED”的名稱。

You’ll see a list pop up. This is where you can choose your context.
您會看到一個彈出列表。 您可以在此處選擇上下文。

Go ahead and tap on “State.” You’ll see a list of categories for different hardware and software aspects for your phone.
繼續并點擊“狀態”。 您會看到手機的不同硬件和軟件方面的類別列表。


Tap on “Proximity Sensor.” You’ll get a pop-up with options.
點擊“接近傳感器”。 您會看到一個帶有選項的彈出窗口。

The normal behavior is that a task will run when the proximity sensor is triggered, i.e. something is in front of it. You can also invert this so that a task runs only when something’s NOT triggering it, but for our purposes, we’ll leave the “Invert” option unchecked. Tap Done. Then, you should see the Task Selection pane come up.
正常行為是,當接近傳感器被觸發時,即在其前面有物體時,將運行任務。 您也可以將其反轉,以便僅在某事未觸發任務時才運行任務,但出于我們的目的,我們將不選中“反轉”選項。 點擊完成。 然后,您應該看到出現“任務選擇”窗格。

Here, you can choose from any task you’ve created. Yours will be blank, so just tap “New Task.”
在這里,您可以從創建的任何任務中進行選擇。 您的將是空白,因此只需點擊“新任務”。

Give this task a name. I chose “Led On/off” so if I reference this task in the future for whatever reason, I know exactly what it does. Tap OK.
給這個任務起個名字。 我選擇了“ Led On / off”,因此,如果以后無論出于何種原因引用此任務,我都會確切地知道它的作用。 點擊確定。

Next, you’ll see the Task Edit pane. Here, you can create a series of things to do for this particular task. Tap the plus button.
接下來,您將看到“任務編輯”窗格。 在這里,您可以創建一系列要執行的特定任務。 點擊加號按鈕。

Here, you can select an action category. You can filter the results at the bottom by whether you can settings that can be changed or actions to be carried out. We’ll ignore those for now and just tap “3rd Party.”
在這里,您可以選擇一個動作類別。 您可以根據是否可以更改設置或要執行的操作來在底部過濾結果。 我們暫時將其忽略,只需點擊“第三黨”即可。

Tasker can interface with some other Market apps. Lucky for us, it has a built-in LED lighting system, TeslaLED, so tap on that.
Tasker可以與其他一些Market應用程序交互。 對我們來說幸運的是,它具有內置的LED照明系統TeslaLED,所以請點擊它。

Here you can change the options. We want a Toggle behavior, so choose that from the list and then tap Done. Then tap Done again so you return to the Profile screen.
您可以在此處更改選項。 我們需要切換行為,因此從列表中選擇該行為,然后點擊“完成”。 然后再次點擊完成,以返回到配置文件屏幕。
Now, let’s refine our behavior a bit more. After all, it might be annoying to others to have the camera LED on when you’re talking on the phone. On the Profile screen, tap and on hold on the context (the left block) under your current profile, and you should see a menu pop up.
現在,讓我們進一步完善行為。 畢竟,在電話上通話時,讓攝像頭LED亮起可能會讓其他人感到煩惱。 在“個人資料”屏幕上,點擊并按住當前個人資料下的上下文(左側方框),然后您會看到一個菜單彈出。

Here, we can add another context. This time, let’s choose “Application.” Be patient, because it may take a little while to load up all of your apps.
在這里,我們可以添加另一個上下文。 這次,讓我們選擇“應用程序”。 請耐心等待,因為加載所有應用程序可能需要一些時間。

Here, you can choose multiple application that, when active, will allow this toggling behavior to occur. I use Launcher Pro, so I chose that. You may be on the default launcher, so you may want to choose Home, Motorola Home, or whatever the name of the default for your phone is. Conversely, you can also tap the “Not” key and make it so that it does NOT allow the toggling task when in a specific app, but allows it at all other times.
在這里,您可以選擇多個應用程序,這些應用程序在激活時將允許發生這種切換行為。 我使用Launcher Pro,所以我選擇了它。 您可能使用的是默認啟動器,因此您可能要選擇Home,Motorola Home或手機默認名稱。 反之,您也可以點擊“ Not”鍵并進行設置,以使其在特定應用中時不允許切換任務,而在其他所有時間均允許。
That’s it! Make sure that the “On” button is green on the bottom of the screen, and that the profile is showing a green check mark. If it’s showing a red circle with a slash, that means the profile is disabled.
而已! 確保屏幕底部的“開”按鈕為綠色,并且配置文件顯示綠色的復選標記。 如果顯示帶有斜線的紅色圓圈,則表示該配置文件已禁用。

Alternatively, you can change it so your camera button will toggle the camera LED instead.
或者,您可以更改它,以便您的相機按鈕將改為切換相機LED。

To do that, make sure you have two contexts. The first condition should be an Event. Look under Hardware and choose “Button: Camera.” The second condition should be Application. Choose “Not” and select all of the apps that utilize the camera button in some way, like “Camera,” “Camcorder,” “Vignette,” etc. This way, you won’t cause any conflicts. Now, when ever your phone is unlocked, you just have to press the camera button to turn the camera LED on and off.
為此,請確保您具有兩個上下文。 第一個條件應該是一個事件。 在“硬件”下查看并選擇“按鈕:相機”。 第二個條件應該是“應用程序”。 選擇“否”,然后選擇以某種方式使用相機按鈕的所有應用程序,例如“相機”,“攝像機”,“小插圖”等。這樣,您就不會造成任何沖突。 現在,無論手機何時解鎖,您只需按相機按鈕即可打開和關閉相機LED。
On my Droid X, I have to hold the button down for a second or two to register the button press, but that’s how it works with the shutter as well. Button events and proximity sensor states must be read while the phone is unlocked, though other tasks (like toggling WiFi and running an app) can occur as timed events. Also note that this re-assignment of the camera button will nullify the default behavior when this task is active (in any situation that allows the LED is able to be toggled), but will behave normally otherwise.
在Droid X上,我必須按住按鈕兩到兩秒鐘才能注冊按鈕的按下,但這也適用于快門。 在解鎖手機的同時,必須讀取按鈕事件和接近傳感器狀態,盡管其他任務(例如切換WiFi和運行應用程序)也可以作為定時事件發生。 還要注意,當此任務處于活動狀態時(在任何允許切換LED的情況下),對攝像機按鈕的這種重新分配將使默認行為無效,但在其他情況下將正常運行。

Widgets work well, but it’s nice to have a hardware button option to turn your phone into a flashlight.
小部件可以很好地工作,但是很高興有一個硬件按鈕選項可以將手機變成手電筒。
Tasker can do a lot more in-depth stuff, too. It allows creation of if/then statements, variable manipulation, loops, and other programming methods as well as a tap and build interface. Have your own favorite Tasker functions? Share your conditional/automated enthusiasm in the comments!
Tasker也可以做很多更深入的工作。 它允許創建if / then語句,變量操作,循環和其他編程方法,以及tap和build界面。 有自己喜歡的Tasker功能嗎? 在評論中分享您的條件/自動熱情!
翻譯自: https://www.howtogeek.com/65245/how-to-start-tweaking-your-android-phone-with-tasker/
tasker使用手冊