Euan Ritchie's playground

Navigation

Search this site

Login More quotes…

Hanging Up and Locking keys when closing a Smartphones slide

SlideActions for HTC Windows Mobiles.

This is the home page for the SlideActions application written to extend the functionality of sliding Windows Mobile phones.

Originally written and developed to improve my HTC Dual Touch it can be customised to work with other Windows Mobile Professional 6 phones. It might run on WM5 or other versions of WM6 (especially if they have the compact Framework 2 installed), I don't know, I haven't any to test.

The application has been expanded in response to user requests and now integrates with the popular S2U2 application (see Advanced Configuration). If there's something you want to discuss there's a thread on the topic at XDA Developers.

Open source

Because I don't have the time and I've been asked for new features, and there's been volunteered help I've provided access to SlideAction's SVN repository.

I almost didn't because I never bothered to comment code I didn't expect others to see, but, well, I'm not so precious.

Here's the repository's URL::http://opensource.puna.net.nz/svn/slideactions. Accessible both by web browser and SVN client such as TortoiseSVN.

Anyone wanting to contribute can create a branch (such as http://opensource.puna.net.nz/svn/slideactions/branchs/new_branch) and I'll merge working features into the main branch.

 Installation

  1. Download this CAB file and copy it to your phone, then open it in File Explorer. It will install the application and prepare your phone.
  2. Configure and start the application by finding it's icon in the Start - Programs menu.

A StartUp shortcut will also have been installed so the application will automatically restart with the phone.

The CAB file can be deleted after installation.

General Configuration

I use SlideActions with my phone set to answer calls on slide open. This is an option on the Advanced tab of Phone Settings (accessible through Start - Settings - Personal - Phone). Having sliding close hang up and lock as well was the entire inspiration for SlideActions.

Slideactions four configuration tabs

On Close

The actions, if selected, which occur when the phone is slid close.

Re/Start starts (or re-starts to pick up a new configuration) the slide monitoring application and exits the Configuration. Stop/Exit stops any monitoring and exits the configuration.

On Open

The actions, if selected, which occur when the phone is slid open.

Other

Actions not related to sliding.

Advanced

Interaction with other applications.

Users who may use a third party locking application, such as S2U2, or have a reason to invoke another application, can specify applications for SlideActions to show and hide.

Select from the dropdown list, or type into the field, the applications executable file name and 'Add' it to the list of third party applications to invoke (in Windows Mobile an executables name looks something like this: "\Program Files\S2U2\S2U2.exe").

Select an added application, enter any parameters required when running it, then an event. For the selected event choose what will happen by checking the appropriate option.

The defaults set when an application is added are Run On Close and Hide On Open - the settings a third party lock program would use.

Attempts to Run will iterate through the running applications and if a window associated with the file can be found it will be brought to the foreground, activating the application. If no such window can be found the application will be executed (with any supplied arguments).

Attempts to Hide will search for an associated window to be pushed into the background, activating the next window/application in order.

Attempts to Close currently Kill the windows process (it isn't subtle).

There is no gaurantee that any given application will play nice with this technique. It works fine with S2U2 on my phone (I leave Lock keys unchecked - that becomes S2U2s job), which is set to answer calls on slide open - if your phone doesn't answer on slide open you may find a clash of applications occurs preventing you from answering calls. It'll require trial and error with any other application.

Donations welcome

Because someone graciously asked after donating, here's a link to Paypal...

Please alert me to any bugs, problems, feature requests or other issues.

Advanced Configuration

Released Versions

*Turns out this was just an artifact of my working in a developement environment and was probably never an issue for users.

Details

The application is a C# .Net CF2 console application named Slidemon.exe and it is configured by SlideActions.exe

Both applications are installed in "\Program Files\SlideActions", a shortcut to SlideActions should be installed in "\Windows\Start Menu" and a shortcut to Slidemon should be installed in "\Windows\StartUp".

Application settings are stored in "\HKEY_CURRENT_USER\Software\Ionwerks\SlideActions".

Movement of the slide is monitored by checking the registry key specified in the application settings "NotificationKey" amd "NotificationValue".

If the phone is not a HTC Dual Touch it may be possible to find another key that allows it to work, I do not currently know about any as I've only worked on my own phone.

Other Phones

SlideActions looks for registry notifications of the slide being opened or closed. On the HTC Dual Touch this is the key "HKEY_LOCAL_MACHINE\Software\OEM\Keyboard DWORD:SlidingOut".

Other HTC phones may work exactly the same way, I have no idea as I've no others to test with.

If anyone wants to try and make SlideActions work on another phone, possibly even another brand, where it doesn't yet, the first step is to locate a notification key for the slide position.

I used RegLogger to monitor changes in the registry while sliding my phone.

If a different notification key can be found configure Slideactions to use it by changing the values in:

And please tell me about it so I can pass it on.