tools

Tools for Windows Mobile (Professional)

Table of Contents
whats here and where to go

1. RegistrySetString.exe
set a string value in registry
Download: RegistrySetString.zip - 3,883 Hits
Version: 1.1
Updated: August 17, 2008
Size: 2.01 KB

RegistrySetString.exe is a commandline program to set a string-value in windows registry.
One way to use this program is to create a shortcut to this program with the desired arguments.

Usage for RegistrySetString.exe

1. Specify any value: RegistrySetString.exe Key Path ValueName Value
e.g. to set HKLM\Comm Manager\Test=abc

RegistrySetString.exe HKLM "Comm Manager" Test abc
RegistrySetString.exe HKEY_LOCAL_MACHINE "Comm Manager" Test abc

2. Use this program to queue a command for the BatteryStatus-Plugin.
e.g. Use BS command (reloadtheme = 1)

RegistrySetString.exe 1

List of Commands for BatteryStatus.

2. TinyBatch.exe
open a batch-file and execute the programs included
Download: tinybatch.zip - 2,118 Hits
Version: 1.1
Updated: September 21, 2008
Size: 3.29 KB

TinyBatch.exe is a simple and small commandline program to open a script-file and interpret it.
Usage:

tinybatch.exe NameOfScript.bat

Example:

# Wait a second
Sleep 1000

	# Set Vibra Mode
	PostMessage HHTaskBar NULL 1156 2 0
	
	# Set Normal Mode
	PostMessage HHTaskBar NULL 1156 0 0
	
	# Set Silent Mode
	PostMessage HHTaskBar NULL 1156 3 0

	# Set string in registry, RegistrySetString.exe is same directory as tinybatch.exe
	RegistrySetString.exe 0 1

	# Set string in registry, Complete path to RegistrySetString.exe is given
	\\Windows\\BatteryStatus\\RegistrySetString.exe 0 1

	# open calc and wait for close of calc
	\\Windows\\Calc.exe 

	# open calc and continue without waiting
	Call \\Windows\\Calc.exe

Sleep x – Wait for x ms

Programname argumenst – Start a program and wait

Call Programname argumenst – Start a program and dont wait

3. AppLauncher
add an app-launcher to BatteryStatus-Plugin
Download: AppLauncher.zip - 4,370 Hits
Version: 1.0
Updated: May 12, 2008
Size: 12.38 KB

AppLauncher.exe requires .NetCF 1.0 and adds an application-launcher to the theme used by BatteryStatus-Plugin.
Usage:

4. BSCallTimes
format CallLogs of BatteryStatus-Plugin
Download: BSCallTimes.zip - 2,547 Hits
Version: 1.0
Updated: May 12, 2008
Size: 2.63 KB

BSCallTimes is an XSLT-Script to transform the xml-logfiles of BatteryStatus for the calltimes to an html-document. This makes it easy to view with any browser.

Usage: – Copy BSCallTimes.xsl to the same directory of BSCallTimes.xml
– prepend the following line to BSCallTimes.xml (must be the first line!)

<?xml-stylesheet type="text/xsl" href="BSCallTimes.xsl" ?>

– open BSCallTimes.xml with a browser

5. SecondToday
Having a second TodayScreen/HomeScreen
Download: SecondToday Cab Installer - 89,812 Hits
Version: 0.4.3
Updated: February 23, 2009
Size: 35.42 KB

Usage: – Copy SecondToday.cab to your device and click on the cab to start the installation.

Tap and Hold on a free window area will open the settings-dialog!!!

Tray-Icons are supported with HomeScreen++UI only!!!

Commandline arguments: e.g. “SecondToday.exe show”

  • quit: Release plugins and close SecondToday
  • settings: Open settings-dialog of SecondToday
  • background: Move SecondToday-Window to background
  • show: Bring SecondToday-Window to foreground

Advanced Features for Plugins:

  • support for TODAYM_REQUESTREFRESH defined as (WM_USER + 103).
    This message send to secondtoday-window immediately calls WM_TODAYCUSTOM_QUERYREFRESHCACHE.

The following screenshots shows e.g. the Big TrayIcon-Support combined with “No CommandBar”-Option

Get SecondToday-Capabilities:
#define TODAYM_GET_CAPABILITIES (WM_USER + 222)
DWORD dwCapabilities = (DWORD) SendMessage ( GetParent ( hWnd ), TODAYM_GET_CAPABILITIES, 0, 0 );

The Capabilities are BitFlags defined as:

  • TODAYM_FLAG_DRAW_PARTIAL_WATER defined as 0x00000001.
    This flag indicates whether partial draw of the watermark is supported.
    SecondToday returns true.
    If partial draw is supported, then the RECT of TODAYDRAWWATERMARKINFO can be set to draw only parts of the watermark. e.g. rc = { 20, 20, 40 80 }.
    Better for rendering animations of plugins with big client sizes.

search through the following headerfile for the capabilities:

// WM_USER defined in winuser.h
#ifndef WM_USER
#define WM_USER                         0x0400
#endif

/*
 * Message Send to Parent-Window for retrieving Capabilities
 * Usage:
 *		DWORD dwCapabilities = (DWORD) SendMessage ( GetParent ( hWnd ), TODAYM_GET_CAPABILITIES, 0, 0 );
 */
#define TODAYM_GET_CAPABILITIES			(WM_USER + 222)

/*
 * Message Send to Parent-Window for retrieving WindowHandle for Commands
 * Usage:
 *		HWND hControlWnd = (DWORD) SendMessage ( GetParent ( hWnd ), TODAYM_GET_CONTROL_WINDOW, 0, 0 );
 */
#define TODAYM_GET_CONTROL_WINDOW		(WM_USER + 223)

/*
 * Message Send to hControlWnd for modifying a TrayIcon
 * This is a replacement for Shell_NotifyIcon with the same parameters
 *
 * Usage:
 *  NOTIFYICONDATA * nid;
 *  
 *	DWORD dwMessage = [ NIM_DELETE, NIM_ADD, NIM_MODIFY ];
 *	BOOL bSuccess = SendMessage ( hControlWnd, TODAYM_NOTIFY_ICON, dwMessage, (LPARAM)nid );
 */
#define TODAYM_NOTIFY_ICON				(WM_USER + 301)


/*
 * Message Send to Parent-Window for Unloading a plugin
 *
 * Usage:
 *		BOOL bSuccess = SendMessage ( hControlWnd, TODAYM_UNLOAD_PLUGIN, 0, (LPARAM)L"My Plugin" );
 *
 * If you want to use this by a different process than your plugin, then you have to provide the name of the Plugin
 * by WM_COPYDATA and supply 0 for lParam in the subsequent call
 * The same applies to TODAYM_RELOAD_PLUGIN
 *
 * Usage:
 *		TCHAR Plugin [] = L"My Plugin";
 *		COPYDATASTRUCT cds;
 *		cds.lpData = Plugin;
 *		cds.cbData = sizeof(Plugin);
 *
 *		SendMessage ( hSToday, WM_COPYDATA, 0, (LPARAM)&cds );
 *		BOOL bSuccess = SendMessage ( hControlWnd, TODAYM_UNLOAD_PLUGIN, 0, 0 );
 */
#define TODAYM_UNLOAD_PLUGIN			(WM_USER + 310)


/*
 * Message Send to Parent-Window for Unloading a plugin
 *
 * Usage:
 *		SendMessage ( hControlWnd, TODAYM_RELOAD_PLUGIN, 0, (LPARAM)L"My Plugin" );
 */
#define TODAYM_RELOAD_PLUGIN			(WM_USER + 311)




/*
 * Capability Flag whether Partial Draw of Watermark is supported
 * Usage: BOOL bSupport = ( dwCapabilities & TODAYM_FLAG_DRAW_PARTIAL_WATER );
 */
#define	TODAYM_FLAG_DRAW_PARTIAL_WATER	0x00000001

/*
 * Capability Flag whether Parent provides a TrayIcon-Window
 * Usage: BOOL bSupport = ( dwCapabilities & TODAYM_FLAG_NOTIFY_ICON_TRY );
 */
#define	TODAYM_FLAG_NOTIFY_ICON_TRAY	0x00000002

/*
 * Capability Flag for current state of Big TrayIcons of Parent TrayIcon-Window
 * Usage: BOOL bBigTrayIcons = ( dwCapabilities & TODAYM_FLAG_DRAW_PARTIAL_WATER );
 *			true = big trayicons are selected, false = small trayicons are selected in options
 */
#define	TODAYM_FLAG_BIG_TRAY			0x00000004

/*
 * Capability Flag for Parent ControlWindow to support Unload/Reload of a Plugin
 * Usage: BOOL bBigTrayIcons = ( dwCapabilities & TODAYM_FLAG_UNLOAD_RELOAD );
 *			true = Unload/Reload is supported, false = no support
 */
#define	TODAYM_FLAG_UNLOAD_RELOAD		0x00000008