[Windows Mobile Development and Hacking General] chrisstavrou:
Hi all,

i would like to share with you a utility i have written to help me with my PDA.

Mainly (as the name says), with this utility different programs can be started by using the keys of the PDA.

Its like an extension of the hotkeys but without impacting the hotkey usage.

I have included one more utility which i use together with the hardkeymenu called cscommandline.

Information is included in the cscommandline-spec.txt.

This utility can turn on/off the bluetooth, set the global volume to a value, set the ringer volume to a value,

set the ringer script to a value (this enables the vibration during the alert of calls etc).

I have tested it on a TyTn with WM6 but it should work under WM5 as well.

Link for the whole package is at:

http://rapidshare.com/files/84951586/hardkeymenuv32.zip

>>>>>>>>>>>>>HARDKEYMENU

Usage

-----

Hardkeymenu extends the usage of hot keys:

Its possible now to assign any program (.exe) or registered file to be executed with a

combination of user defined key strokes.

It provides feedback (picture/sound/vibrates) of the options selected.

The program works as follows:

Once the hardkeymenu is executed, it will read the hardkeymenu.dat and wait for keystrokes.

The program if it finds within the same directory the file hardkeymenup.jpg (when in portrait)

or	hardkeymenul.jpg (when in landscape) will use it as a background picture. Otherwise, it will

use the current desktop as a background picture.

If any matching sequence is found, then the relevant description (or picture if present) will be displayed.

If the user does not press any other key, then the relevant sound will be played (if present), the corresponding

program/file will be executed and hardkeymenu will terminate.

If no matching has been found, it will wait for 7 seconds and if no key is pressed it will exit.

If the nomatch.jpg picture is present then it will be displayed otherwise it will display

the key sequence.

The hardkeymenu can be assigned to a Hot-key for quick start up (usual Registry setting,

for example: HLM\SOFTWARE\Microsoft\Shell\Keys\40C7)

Setup/StartUp

---------------------

Setup

-----

The combination key sequence and command can be created by running the setup option.

This option appears when clicking anywhere on the screen while the program is running

and a popup menu will appear with the relevant 'Setup' option.

Through the Setup screens,

- the 'Description' to be displayed when the key sequence is found, can be set. If there is a file with the

same name and extension .jpg then it will be displayed instead.

- the 'Keys' (key sequence that is supposed to trigger the command that follows), can be captured by pressing the relevant

button 'Capture'.

Keys can be pressed and the program will display them for reference. To complete the capturing wait 5 seconds without

pressing any key and the capture screen will exit.

- the 'Command Line' (file to be executed) can be also selected. Pressing 'Browse' will display all files in the PDA and clicking on the

required file will fillin the command line.

- 'Command Parameters' (any optional parameters that might be required together with the command line) can be

keyed in.

- 'Sound', if checked then after selection before executing the 'Command Line', if a file with name 'Description'

and extention .wav will be played.

- 'Vib Scr.', is a script for Vibrating before executing the command. Letter L will produce a Long vibration, S will

produce a short one.

'Description', 'Keys' and 'Command Line' are required, if either is not set then the whole entry is ignored.

Navigation through the total of 20 entries is feasible with the 'Next' and 'Back' buttons.

A whole entry can be ignored by pressing 'Delete'.

Pressing 'Done' saves all the changes (No need to save one by one), 'Cancel' will ignore them all.

StartUp

------

- 'Sound', if checked then if a file with name 'waiting.wav' exists it will be played when the program starts.

- 'Vib Scr.', is a script for Vibrating as soon as the program starta. Letter L will produce a Long vibration, S will

produce a short one.

Installation Instructions

-------------------------

Copy all files provided to a directory of your choice (Including Storage Card).

All files including pictures mentioned must be located in the same directory.

Note:

if the message 'Wrong Version' appears, then delete the hardkeymenu.dat is the latest version is not

backwards compatible with the previous.

Log

----

19-01-2008:

Updated cscommandline to support ringer script.

12-01-2008: Version 3.2

- Added vibration support in the form of a script.

04-01-2008: Version 3.1

- Added Sound support as confirmation

If a file with the same name as the 'Description' and extension '.wav' exists in the directory of the hardkeymenu

the sound will be played as a confirmation while running the relevant program.

- On main screen a count down is showing the seconds left before the program exists if no key is pressed.

- Bug fix

03-01-2008: Version 3 - Added Setup option, stopped using ASCII File.

26-12-2007: Version 2 - A simpler remake of version 1

Below are some screenshots (remember that most of the pics including background can be customized).