Archive for the ‘Programming’ Category.
October 19, 2012, 15:46
The attached web server offers some options to control the device or show informations about it. The web server runs on the device and enables direct control or delivers information about the device.
The project enclosed default web page offers all implemented commands. The following is a list of what is currently implemented:
- SystemInfo: get OS version info
- BEEP: let the device beep
- START: starts a process
- KILL: kills a process
- SETLED: light/unlight/blink a LED
- VIBRATE: special LED case, this sets a LED which is a placeholder for the vibrate motor
- SIP: show/hide the Software Keyboard
- SHOW: ShowWindow implementation (show normal, hide, minimize etc)
- ENABLEWINDOW: enable or disable a window
The default web page
Continue reading ‘Windows Mobile – A simple web server with extended features’ »
October 19, 2012, 13:55
This time I combined a set of functions to clear the Start Menu and the Today/Home Screen:
Before
After
Continue reading ‘Windows Mobile: Kiosk mode – Clear Today and Programs’ »
October 17, 2012, 14:24
This is not really an alternative but a different approach if you need the user to take multiple pictures in one session and then return to your application.
The code starts the Camera application in background and waits for the minimise/close of the Camera dialog. If you first launch the camera using “pimg.exe -camerakey” the camera dialog shows a live preview (liveview). If you press the Enter key, you will get a snapshot and the camera dialog shows a preview of the image (imageview).
Continue reading ‘Windows Mobile: CameraCaptureDialog alternative’ »
September 27, 2012, 19:40
iHookIE6
this small tool enables you to use Function keys within Internet Explorer Mobile (IEM) web sites.
Normally, most function keys are catched and used by the OS (GWES) to perfom special actions like menu softkeys, phone call, end phone, volume up, volume down and more.
Using a keyboard hook we can catch the function key presses, or better say WM_KEYDOWN and WM_KEYUP messages before the OS can catch them.
One challenge was to find the window that processes normal key presses. The keyboard windows messages are not send to the top level window. Using the Remote Spy Tool I found the Window inside Internet Explorer window that finally processes keyboard messages. Now the tool can hook the keyboard, catch F key presses (F1 to F24) and send them directly to the browser window (class name = “Internet Explorer_Server”). The tool simply uses FindWindow and GetWindow to locate the window handle of this window and then does a PostMessage with WM_KEYDOWN and WM_KEYUP directly to the browser window.
Continue reading ‘Windows Mobile: redirect function keys into Internet Explorer Mobile browser’ »