APPCOMMANDs and Windows Me
A number of APPCOMMANDs have been defined in Windows Me. A list of these can be found in Winuser.h. These APPCOMMANDs have special registry keys associated with each of them. Each key defines an application associated with a particular APPCOMMAND. These keys are stored in the following location.
HKLM\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ AppKey \<NUM>
HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ AppKey \< NUM>
Replace <NUM> with the appropriate numeric value for the APPCOMMAND as defined in Winuser.h. The value name stored inside each key should correspond to one of the following three choices:
. ShellExecute: This value is used to define a particular application that should be launched when this key is pressed--for example, calc.exe
Arguments can also be passed, but ensure that they are enclosed within the quotes--for example "runme.exe /arg"
. Association: This value establishes a relation between a file extension and a program to be launched for that particular extension-for example, .mp3
. RegisteredApp: This value is used to launch an application that is registered with the operating system--for example, mail
This data stored in the registry value field must be in the form of a string (REG_SZ). The registry keys are searched in the current user hive of the registry first. If a match is not found in this section, the local machine section is searched. It must be ensured that the registry keys do not contain incorrect values, which might cause the key to become useless.
Changing the value stored inside one of these registry keys does not require a reboot. Windows Millennium Edition, by default, contains five keys stored under the local machine hive. These keys contain the defaults associated with the corresponding APPCOMMAND and must not be removed.
Vendors can write their own user interface to program the registry keys or use INF files to install special entries as defaults
Also see
http://216.239.63.104/search?q=cach...003/03/10/256.aspx+Winuser.h&hl=en&lr=lang_en
--
----------------------------------------------------------
Stan Brown said:
Stan Brown said:
I have a keyboard with a button for the calulator and my computer, etc..
The calculator key isn't working, and I have an idea I've disabled
something in Services that controls it. What might it be?
in microsoft.public.windowsxp.general:
Oops. Here it is in a different location:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18]
"ShellExecute"="calc.exe"
I don't have a dedicated Calculator key on my Acer Travelmate 4500
notebook, but I do have a "calc" entry at this Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\7
What's the significance of the "7"? I also have some dedicated app
keys at 15, 16, 17, 18. They don't seem to be scan codes, because
scan code 7 looks like the "6" key if I'm reading correctly.
What are the limits to keys that I can program in this way?
If you want to know you get tweakui and start customising the inbuilt keys
I have TweakUI and none of the entries in Explorer -> Command Keys
seems to correspond to anything on my keyboard. OTOH, my keyboard
does have a euro key and an extra dollar key, which I would very
much like top remap as I keep hitting them instead of the adjacent
arrow keys.
I tried the Acer site but can find no keyboard documentation.