PDA

View Full Version : Assigning Custom Actions To Buttons <-- SORTED THIS


veletron
6th December 2004, 10:45 PM
Hi

The O2 Active rubbish that comes on the XDA IIs allows you to go straigh to your pop3 inbox via a link in its menu. When I use the hardware email button on the front, it starts up inbox, but it aint my pop3 inbox its the default outlook inbox.

Is there any way of assigning custom actions to a hardware button? Such that pressing the email button pulls up pocket outlook pointing at my pop3 inbox??

Also, whats the best registry editor prog for windows mobile 2003 devices?

Nigel

veletron
6th December 2004, 11:44 PM
Found this: http://smartphonedn.com/forums/viewtopic.php?p=2311&sid=792bf7b2b0944c610a5f683878c821e8

But was hoping not to have to write a bl00dy launcher just to get it to point at my inbox!

Nigel

veletron
7th December 2004, 12:10 AM
Hi

Sorted this. For anyone whos interested:

Use activesync to copy the file \Windows\AppButtons\Messaging.lnk to your PC. Edit the file with notepad. You could also edit it on the device, but I prefer a decent keyboard!!

The Messaging.lnk file will read something like:

19#"\Windows\tmail.exe"

Change it to read something like

19#"\Windows\tmail.exe" -service "ServiceName"

The number on the front (in my case #19) should be kept the same as it is currently on your device.

ServiceName could be: Text, MMS, MyPopAcc, blah blah.

There are a load of parameters for tmail.exe by the looks of it. One site that claimed to list them was down/dead.

Save the modified file and copy it back to your device. Now when you hit the 'email' hardware button you'll get the service you mentioned as a default.

You can also stick -attatch on the end i.e:

19#"\Windows\tmail.exe" -service "ServiceName" - attatch

But I found that this did nothing with email. Maybe with MMS etc.

If anyone knows any of the other commands for tmail, pls post!?

Nigel

veletron
12th January 2005, 03:50 PM
If, after changing the file in App Buttons it still launches the messaging pointing at the wrong folder, do the following:

Close the messaging app (completely) from settings --> system --> memory --> Running Programs.

Then goto Settings --> Personal --> Buttons, and change button 4 from messaging to some other program. Tap OK, use the messaging button to start that other program, quit said program, go back into Buttons, and change button 4 back to messaging. Try to launch messaging.

It must cache the old info somehow.

Nigel

butt
12th January 2005, 04:44 PM
i believe you'll find the short cuts is set in the registry and doesn't use the program thats selected on the buttons controle pannel item

veletron
13th January 2005, 01:03 AM
Nope, it definately uses the stuff in appbuttons! Perhaps these get read and copied to the registry, dunno, but changing the prog in the appbutton shortcut changes what gets launchen when you hit the hardware button.

Nigel

chriscole
13th January 2005, 12:52 PM
And, if you want to delete the entire crappy outlook/activesync account try removing the appropriate folder (dunno what it's called now, lol) from:

LOCAL MACHINE/SOFTWARE/Microsoft/Inbox/Svc/

edit - Incidentally, the new i-mate ROM always starts the messaging client in the 'last viewed' account anyway.

Chris.

veletron
3rd March 2005, 01:24 AM
LOCAL MACHINE/SOFTWARE/Microsoft/Inbox/Svc/

Dont trash the outlook key in here. If you do then you will indeed, loose 'outlook' folder in the inbox app (good!), but as a side effect, sms notify will also stop working (unit will not make noise and display part of message when sms received) (bad!)

Nigel

rakh1
3rd March 2005, 10:15 AM
19#"\Windows\tmail.exe" -service "Text"

Worked first time for me - takes me straight to my SMS inbox :)

Cheers!!!!!