Windows Mobile: Add scripting to your device with MortScript
There are a vast amount of programs available for Windows Mobile devices. There is a good chance, that if you want your device to do something, someone else has written code which will make it happen.
As everyone uses their devices differently, occasionally people want to do things that are not the norm. Supposedly small things like turning Bluetooth on or rotating the screen when a program loads can be very useful, though hard to achieve.
Mortscript is a scripting language for Windows Mobile devices. While it is not the easiest program to use effectively, some simple tasks can be achieved without too much fuss. Mortscript allows you to:
- Run, activate, hide, close, and kill programs
- Wait functions: certain timespan, wait for existence or activation of windows, lots of other conditions (SleepMessage).
- Send keystrokes, mouse clicks, and some window messages (OK, Cancel, Yes, and No buttons) to windows
- File operations: copy, rename/move, delete, create shortcuts, read and write text files
- Support of ZIP archives (no replacement of existing archived files)
- Read/write access to serial (COM) ports
- Create and remove directories
- Read from and write into the registry
- Lots of system features (e.g. rotation, volume, backlight brightness, soft reset, battery level, …)
This program is not for a beginner, nor someone without some time on their hands. There are a huge range of example scripts available to get you going. Cutting and pasting segments of these examples will help you make your own scripts and learn the commands. The commands are fairly simple to understand and there is a very active community of users happy to assist you.
Mortscript is available for free from sto-helit.de.