Gestures & Shaking(ジェスチャーと振動検知)

General(概説)

Gestures are physical movements of the phone in space, which you first record by creating a new Event of type Gesture (in the Misc category).

When you later redo the gesture while using your device, Tasker will carry out the corresponding task(s) you have attached to its profile.

Like normal events, gestures are restricted by other contexts. For example, if you define a profile with a Gesture (Event) and Application context, the gesture will only be recognized while using that particular application.

Note: it might be a good idea to disable Tasker before setting up new gestures, as otherwise you are likely to trigger previously defined ones.

https://tasker.joaoapps.com/userguide/en/gestures.html

ジェスチャーとは空中での電話機の物理的な動きの事で、まず(「その他」カテゴリー内の)ジェスチャータイプのイベントコンテキストを登録します。(※訳者注:現在ジェスチャーイベントはセンサーカテゴリー内にあります)

その後端末使用時に登録したジェスチャー動作をすることでそのプロファイルに紐付けられたタスクをTaskerが呼び出します。

通常のイベント同様ジェスチャーイベントは他のコンテキストの制約を受けます。例えば、あなたがジェスチャーイベントとアプリケーションコンテキストを定義したとすると、特定のアプリケーションが起動しているときにのみジェスチャーは認識されます。

注記:新しいジェスチャーを設定する前に一度Taskerを無効にしておく事をお勧めします。さもないと、ジェスチャーの定義が完了する前にそれを関知してしまう可能性があります。 

Recording A Gesture(ジェスチャーの記録)

Gesture Points(ジェスチャーポイント)

First off, it’s important to know that Tasker only records the particular points (which we’ll call inflection points) of a gesture that you tell it to. For example, recording a gesture involving tilting the phone to the left and back you would record three inflection points: the start, the tilted left position, and the end (which is the same as the start in this case).

You can record as many points as you like, but in general it’s best to record only the points where the phone is not moving.

https://tasker.joaoapps.com/userguide/en/gestures.html

まずはTaskerがジェスチャー動作の特定のポイント(これを屈折点と言います)のみを記録すると言うことを知っておくことが重要です。例えば、電話機を左に傾けてから戻すジェスチャーを記録した場合、三つの屈折点を記録した事になります。すなわち開始点と左に傾けた地点と元に戻った地点(このケースでは開始点と同じ)です。

登録する点はいくつでも構いませんが、一般的に電話機の動きが止まる地点を登録するのが良いとされます。

Recognized Movements(認識された動作)

Tasker will only recognize changes in the angle of the phone i.e. tilting to left or right, backwards or forwards, or rotating vertically. Imagine three poles going through the device in the three dimensions.

Moving the phone backwards or forwards, up or down or side to side cannot be recognized.

https://tasker.joaoapps.com/userguide/en/gestures.html

Taskerは電話機を前後左右に傾けたり垂直に回転させるなど傾きの角度の変化のみ記録します。端末を中心点においた三次元の座標をイメージすると良いでしょう。

電話機を上下左右前後に平行移動させるような動きは記録されません。

Procedure(手順)

  1. create a new Gesture Event and give it a name (so you can differentiate between different gestures).
  2. put the phone in the position where you want the gesture to start and press-and-hold the Call, Camera, Menu, Search or Volume hardware buttons to record the point. The device will buzz.
  3. move to another (preferably not-moving) point on the path of your gesture, and press the button again (not a long press). The device will buzz.
  4. on the final inflection point, press-and-hold the button to mark the end of the gesture. The device will buzz again and the “Recorded.” message should now flash up.
  5. Press Done, and add a Vibrate action so you can hear when your pattern matches when testing it.
https://tasker.joaoapps.com/userguide/en/gestures.html
  1. 新しくジェスチャーを作成したら名前を付けます(名前によってそれぞれのジェスチャーを区別します)。
  2. ジェスチャーの開始点に電話機を保持したまま通話、カメラ、メニュー、検索あるいは音量のハードウェアボタンを長押しすると端末が応答します。
  3. ジェスチャーの次のポイントに(できれば端末を動かさず)移動させ、ボタンをもう一度押す(長押しではありません)と端末が応答します。
  4. ジェスチャーを終了する最後の屈折点でボタンを長押しします。端末が応答して「記録しました」とメッセージが表示されます。
  5. コンテキストの設定を終了したら「振動」アクションを追加してみてください。ジェスチャーの関知を振動で知ることができます。

Activation(有効化)

Calibration(補正)

Before trying to match a pattern, you probably need to calibrate the hardware in your device. Go to Menu / Prefs / Monitor / Gestures. Press the Calibrate button and tilt your phone around in all directions.

Tasker now has some idea what kind of values the accelerometer in your phone produces.

You only need to calibrate once.

https://tasker.joaoapps.com/userguide/en/gestures.html

実際にジェスチャーを試す前に端末の動作補正を行う必要があるかもしれません。メニュー / Tasker基本設定 / 監視 / ジェスチャー(加速度センサー)の「補正する」ボタンをタップして端末を色々な方向に傾けます。

これでTaskerがあなたの端末の加速度センサーからどのような値が得られるのかを認識しました。

補正は1回すれば大丈夫です。

Matching(ジェスチャーの認識)

Now exit Tasker and move your device through the points you previously defined when recording. You should hear the device vibrate when it reaches the final recorded point.

If not, try playing with the values in the Gesture Settings screen. For instance, you could try raising the Match Radius (but be careful not to raise it too much or you’ll get a lot of matches by mistake).

https://tasker.joaoapps.com/userguide/en/gestures.html

早速Taskerを閉じてジェスチャーで記録したポイントを通るように端末を動かしてみます。最後に記録したポイントに達すると端末が振動します。

うまくいかない場合はジェスチャーの設定を色々と変えながら試してみてください。例えば「ジェスチャー認識の半径」の値を上げてみてください(上げすぎると過剰に認識してしまうので注意してください)。

Power Usage(電力使用量)

Tasker does its best to limit power usage of gesture monitoring.

  • monitoring for gestures only takes place when all the other contexts in a profile are already active (and so the gesture might have a chance of activating the profile). For example, if you combine an Application and Gesture (Event) context, gesture monitoring will only take place while using that particular application.
  • Gesture monitoring is by default turned off when the display is off unless a power source is connected to the device, unless specified otherwise in Menu / Prefs / Monitor / Display Off Monitoring
  • updates from the accelerometer are at the minumum rate until the start of a gesture is detected.
https://tasker.joaoapps.com/userguide/en/gestures.html

Taskerはジェスチャーの監視に必要な電力消費を最小限に抑えるように努めます。

  • ジェスチャーの監視は同一プロファイル内の他のコンテキストが全てアクティブな場合のみ行われます(これ以外の場合にジェスチャーがプロファイルのアクティブ化に関わることはありません)。例えば、アプリケーションコンテキストとジェスチャー(イベント)コンテキストがプロファイルのアクティブ化の条件の場合、指定されたアプリケーションが起動中にのみジェスチャーの監視が行われます。
  • 端末が電源に繋がれているか、メニュー / Tasker基本設定 / 監視 / 画面消灯中の監視 で特に設定がされていない限りデフォルトではジェスチャの監視を画面の消灯と共に終了します。
  • ジェスチャーの状態が検出されるまで加速度センサーからの情報の更新は最小限に抑えられます。