G-Trigger ~ G-Sensor based ^shake^ detector application for Windows Mobile
G-Trigger v0.9.2 beta [10-Jul-2009] By Krupal Desai
G-Trigger is a G-Sensor based ^shake^ detector application for Windows Mobile. It allows to trigger a predefined action on shaking your mobile phone in particular direction. Currently it is in very rough development phase, so please bare the bugs.
Simulate Power Button - Power On/Power Off/Long Press Power Button
Open control panel settings
Activate profile
*Please refer to readme.txt for sending special keys.
#Currently supported media players are
Windows Media Player
S2P
Microfi Nitrogen
Core Player
TCPMP
Pocket Player
Pocket Music
Manila (TF3D) Music Tab
Feature Explanation:
Customized actions
You can assign any of the customized actions as mentioned above to any of the supported shaking directions. Action will be triggered when you shake your phone in proper configured direction.
For example: Launch calculator by shaking your phone from top to bottom or Launch S2U2 by shaking your phone from bottom to top.
Conditional actions
You can specify a particular condition which will be monitored before triggering an action and if condition is matched action will be triggered otherwise ignored.
For example: Play next track by shaking your phone from left to right only if Windows Media Player is active.
Suspend exceptions
As G-Trigger Service continuously polls the G-Sensor to detect shake it might affect the other applications which uses the G-Sensor. Thus you can add such applications as suspend exception to G-Trigger. When it will find any application from the suspend exceptions list as active, G-Trigger Service will be suspended, i.e. it will not access G-Sensor till that application is active.
For example: Suspend the G-Trigger Service when Teeter is active.
Disable action exceptions
Actions will be ignored if any of the application specified in the list of disable action exceptions is active. Polling the G-Sensor will be continued by the G-Trigger Service no matter such application is active or not. It is mainly kept to utilize the purpose of "Override disable action exceptions" which can be activated from "Conditional actions".
For example: If S2U2 is active no actions should be triggered, but you still want some actions like "Media control Play/Pause/Next/Previous" to trigger. So put S2U2 in disable action exception and check "Override disable action exceptions" from conditional action settings.
Run service on device startup
G-Trigger Service should be running to trigger actions on shaking your phone. Thus this option can be set to run service automatically when device is restarted.
Individual threshold settings for all three directions; Horizontal, Vertical & Front-Back
You can customize the threshold values for individual directions. Higher the threshold values more you need to apply force while shaking your phone to trigger an action.
For example: You want to play next/previous music tracks by lightly shaking the phone on horizontal direction and you want to lock your phone only by shaking phone with force from Front to Back. Then apply horizontal shaking threshold to lower value (12) and apply Front-Back shaking threshold to higher value (30).
Action feedback vibration settings
You can set vibration duration from 0 to 100 ms which will be used as feedback when any shake is detected and action is triggered. To turn off vibration feedback keep its value 0.
Action feedback play sound settings
You can set to play a sound as feedback when any shake is detected and action is triggered. Sound file is present at location "G-Trigger\Res\trigger.wav". You can use your own .wav file which should be less than 300KB.
Profiling
You can create multiple profiles (different triggerable actions) which can be activated quickly from settings or by shaking.
Different actions for different applications
You can create different profile having different triggerable actions for all directions. Now these profiles can be auto-triggered when specified program is active.
For example: You have set some actions for all directions which you regularly use, but if Windows Media player is running then you want left to right to play next song, right to left to play previous song and so on. So you can specify 'wmplayer.exe' in auto-trigger application name for another profile which have said actions.
Settings for On Screen Display of triggered actions
You can set On Screen Display of action icon to be shown for specified duration (0 to 2000 ms) which will be displayed on the screen when any shake is detected and action is triggered.
AppToDate support
G-Trigger supports the AppToDate tool which helps you to download and install the latest G-Trigger build. For more information of AppToDate visit here or download AppToDate from here.
Known Issues:
OSD is displayed with some delay after event is occurred
Sometimes shake actions are not triggered when device is busy processing
Sometimes shake actions are triggered accidentally when not intended
G-Trigger Service is made suspended when device goes in to sleep mode (may impact battery life if overridden)
Action Media Control "Stop" does not work for all players
Media controls for "Pocket Player" works till it's window is active or minimized (not working when in notification mode)
Further development:
Display configured actions as OSD when device is lightly shaked
Add more actions like "Navigate Manila Page", "Open Quick Launch" etc on shaking
Make it resolution independent
It is developed for HTC Touch Diamond. I have not tested it on any other device. Let me know if you try it on other device.
NOTE: Although running this application does not seem to make any damage, I take no responsibility for any kind of damage caused to the device or data due to this application.
PS: Credits to Koushik Dutta for sharing G-Sensor managed code for Diamond.