How to assign a shortcut to EndKey, SendKey, Power Button, PTT Button!!

Search This thread

hma4

Senior Member
Jun 5, 2007
651
1
Hello :)

Since some of you guys asked about this , well there you go:
if you look inside the keyboard driver with a good disassembler (IDA Pro) you would see that you can create these link files :

Long_PTT.lnk (push to talk button+long press)
Long_End.lnk (the read key+long press)
Long_Send.lnk (the green key+long press)
Short_PTT.lnk (push to talk button)
Long_Power.lnk (Power button +long press)
Short_Power.lnk (Power button)

So basically all you need is to create these link files and put them in to windows folder. You can assign these keys to any shortcut you want ;)

I attached one of my favorite short cuts ;) unzip the file then put it in to your windows folder. then press Send Key for about 2 to 3 second to run the shortcut. It will bring up the wifi networks.

Have fun.
Hma4

ps:for assigning EndKey to HTC EndKey look here:
http://forum.xda-developers.com/showthread.php?t=356192
 

Attachments

  • Long_Send.zip
    185 bytes · Views: 4,290
Last edited:

smittyofdhs

Senior Member
Apr 28, 2003
580
1
Desert Hot Springs, CA
This has to be the best trick found since I got my Tilt. THANK YOU!!!

Mine is setup as follows:

Long Send - Comm Manager
Long End - Invoke S2U2
Short PTT - PocketPlus4 Alt+Tab Switcher
Long PTT - Voice Command

I did the PTT button mappings with PP4's button enhancement instead of the lnk files mentioned above. But the other 2, which until now, have not been useable for long presses, so THANK YOU again.
 

surur

Senior Member
Nov 29, 2003
622
2
While poking around in the keyboard driver, did you see a way to assign a shortcut to sliding the keyboard out? I think a HTC Action-type app for the Kaiser is not a bad idea.

Surur
 

Edvard_Greig

Senior Member
May 7, 2007
212
13
Denver
ok, I feel really dense, how do you assign the keys? I don't see them listed under buttons after copying the lnk file to my \windows directory. Can this only be done when cooking a ROM? What am I missing? (I did a soft reset after the copy)
 

smittyofdhs

Senior Member
Apr 28, 2003
580
1
Desert Hot Springs, CA
ok, I feel really dense, how do you assign the keys? I don't see them listed under buttons after copying the lnk file to my \windows directory. Can this only be done when cooking a ROM? What am I missing? (I did a soft reset after the copy)

they won't show up there. Just try the button after you copy the lnk file to windows directory.

What I did was find the shortcuts that I want to use for the send and end button. Copy those shortcuts and rename them to the above names. Then move the shortcut into windows directory. it worked right away, no reboot needed.
 

galenmd

Senior Member
Nov 4, 2007
150
0
OMG this is so awsome! Thank you!!

I already have the PTT button reprogrammed using the registry hack listed elsewhere. I think I will leave those as is and use this method after the next hard reset.
 

gullum

Senior Member
Mar 22, 2007
2,471
10
Dam this is realy good findings :) you just keep amazing me hma4 now I have to but the endkey back into my rom :)
 

hma4

Senior Member
Jun 5, 2007
651
1
How on earth do you find the shortcut codes to put in the file?

It's very simple ! :) just find a short cut from your windows folder , say AudioManager.lnk for example .. then copy it to your PC .. open a notepad , drag and drop the file to notepad , then edit the address inside the file and save it (pick one of those names i mentioned on the first post) then copy it to your windows folder and you are done ! :)
 

v3patel

Senior Member
Mar 1, 2007
312
2
Solution using mortscript

Hello :)

Since some of you guys asked about this , well there you go:
if you look inside the keyboard driver with a good disassembler (IDA Pro) you would see that you can create these link files :

Long_PTT.lnk (push to talk button+long press)
Long_End.lnk (the read key+long press)
Long_Send.lnk (the green key+long press)
Short_PTT.lnk (push to talk button)
Long_Power.lnk (Power button +long press)
Short_Power.lnl (Power button)

So basically all you need is to create these link files and put them in to windows folder. You can assign these keys to any shortcut you want ;)

I attached one of my favorite short cuts ;) unzip the file then put it in to your windows folder. then press Send Key for about 2 to 3 second to run the shortcut. It will bring up the wifi networks.

Have fun.
Hma4

ps:for assigning EndKey to HTC EndKey look here:
http://forum.xda-developers.com/showthread.php?t=356192

I have created small script that you can use to assigned and remove buttons using Mortscript. In order for it to work please download mortscript 4.1.0 from this website >> install it >> download attached zip and unzip in any folder of your choice and then doubleclick on that file in your device. Currntly it only work for lnk files but i will add exe file later on.
 

Attachments

  • Long_keypress.zip
    1.3 KB · Views: 777
Last edited: