Re: Shortcut keys cannot be re-used

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Wesley Vogel (123WVogel955_at_comcast.net)
Date: 11/26/04


Date: Fri, 26 Nov 2004 09:02:23 -0700

Kool, David!

Beats the hell out of trying to use calculator to convert hex values from
the wrong registry locations. <LOL> Thank you!

I placed both FindHotkey.vbs & FindHotkeys.bat in C:\. Created a shortcut
to FindHotkeys.bat.

Double click FindHotkeys.bat shortcut rendered the following info. You may
get a kick out of the first one. By the way, I use Alt+Ctrl+X for
ClearClipboard.exe all the time.

---------------------------
VBScript
---------------------------
C:\Documents and Settings\All Users\Start
Menu\UTILITIES\ClearClipboard.exe.lnkAlt+Ctrl+X
---------------------------
OK
---------------------------

COMPUTER DOCUMENTS.lnkAlt+Ctrl+C

Post OE.lnkAlt+Ctrl+P

UTILITIES.lnkAlt+Ctrl+U

WINDOWS EXPLORER.lnkAlt+Ctrl+E

C:\Documents and Settings\All Users\Start
Menu\UTILITIES\regedit.exe.lnkAlt+Ctrl+R

---
Ramesh is correct.
"Watch David like a hawk", Ramesh, Microsoft MVP.
-- 
Hope this helps.  Let us know.
Wes
In news:%236wMCO40EHA.3368@TK2MSFTNGP10.phx.gbl,
David Candy <.> hunted and pecked:
> It's worked out at boot time. Put that script into c:\  and the bat
> file then type
>
> c:\findhotkey.bat
>
> I had %1 instead of %A at the end of the line. Attached it as a bat
> file.
>
> Then you need to do clean boot troubleshooting
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;316434&FR=1&PA=1&SD=HSCH
>> Hi David,
>> Well, I managed to install TweakUI 1.33. It installs as a Control
>> Panel icon, which I didn't expect.
>>
>> The Repair Hotkeys item was present, but using it made no
>> difference, even after restarting. The Ctl-Alt-R combination still
>> opens the Nero BurningRom Manual even there is no shortcut present
>> with this set.
>>
>> I can't get your scripts to run - clearly there is something I am
>> doing wrong. However, if they are intended to return the hotkeys for
>> all shortcuts on the desktop and Start Menu, I can actually look at
>> what is set one by one, although the fact that a key is retained
>> after the shortcut is deleted means this may not give all the info.
>> needed.
>>
>> At stage, solving this looks like being in the "too hard" basket
>>
>> Ah well, these are the mysteries of XP :-)
>>
>> Cheers
>> "David  Candy" wrote:
>>
>>> All tweakui have features that the other don't. 1.33 was written
>>> for new features introduced with Win ME / Win 2000. It's the only
>>> version to repair hotkeys.
>>>
>>> If you want to edit Add/Remove you need the first Tweakui for 95.
>>>
>>> My whole point of joining in was to say those registry keys are
>>> probably irrelevent.
>>>
>>> When starting a program one can specify a hotkey for the main
>>> window. A program can register a hotkey for it's own main window.
>>> Or it can register global hotkeys (ie not just for the main
>>> window).
>>>
>>> None of these are shortcut hotkeys. They are registered in memory.
>>> Presumbably Explorer is registering global hot keys on startup and
>>> then starts the whatever when windows tells explorer it has been
>>> pressed. But that's a guess.
>>>
>>> I've attached a script that prints hotkey in a msgbox, and include
>>> the content in the body here
>>>
>>> on error resume next
>>> set WshShell = WScript.CreateObject("WScript.Shell")
>>>  Dim A
>>>  Dim Ag
>>>  Set Ag=Wscript.Arguments
>>>  If Ag.Count > 0 then
>>>   For x = 0 to Ag.Count -1
>>>    A = A & Ag(x)
>>>   Next
>>>  End If
>>> Set FSO = CreateObject("Scripting.FileSystemObject")
>>> f=FSO.GetFile(A)
>>> set lnk = WshShell.CreateShortcut(A)
>>> If lnk.hotkey <> "" then
>>>  msgbox A & vbcrlf & lnk.hotkey
>>> End If
>>>
>>> To use type cmd in start Run
>>>
>>> Explorer looks in 4 places for hotkeys, these are read on startup.
>>> The hotkey is stored in the shortcut. Only hotkeys on shortcuts in
>>> the four locations are live.
>>>
>>> Type in a command prompt
>>>
>>> cd %UserProfile%\desktop
>>> for %A in (*.lnk) do findhotkey.vbs "%1"
>>> for %A in (*.pif) do findhotkey.vbs "%1"
>>> for %A in (*.url) do findhotkey.vbs "%1"
>>> cd %AllUsersProfile%\desktop
>>> for %A in (*.lnk) do findhotkey.vbs "%1"
>>> for %A in (*.pif) do findhotkey.vbs "%1"
>>> for %A in (*.url) do findhotkey.vbs "%1"
>>> cd %UserProfile%\Start Menu
>>> for /r %A in (*.lnk) do findhotkey.vbs "%1"
>>> for /r %A in (*.pif) do findhotkey.vbs "%1"
>>> for /r %A in (*.url) do findhotkey.vbs "%1"
>>> cd %AllUsersProfile%\Start Menu
>>> for /r %A in (*.lnk) do findhotkey.vbs "%1"
>>> for /r %A in (*.pif) do findhotkey.vbs "%1"
>>> for /r %A in (*.url) do findhotkey.vbs "%1"
>>>
>>> Each shortcut, that has a hotkey, will pop up a dialog with the
>>> name of the shortcut and it's hotkey.
>>>
>>> You may have path problems. To make it work put in c:\ and change
>>>
>>> for %A in (*.url) do c:\findhotkey.vbs "%1"
>>>
>>> as all these directory changes may make it difficult for the script
>>> to be found (but shorten the amount of typing for the start menu
>>> FORs).
>>>
>>>       Ctrl + C Copies the text of a message box to the clipboard.
>>>
>>> It is not reccommended that Ctrl + Alt be used with Hotkeys. Ctrl +
>>> left hand side Alt = Right hand side Alt and enters international
>>> characters if using the US International keyboard.  Also F12 is
>>> reserved for the use of debuggers.
>>>
>>>
>>>
>>> --
>>> ----------------------------------------------------------
>>> http://www.uscricket.com
>>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message
>>> news:483B65BF-8009-4F96-9AA1-44D3A0E11899@microsoft.com...
>>>> David,
>>>> Thanks.
>>>>
>>>> So that is not the right place to look.
>>>>
>>>> I set the hotkey in the normal way. I created a shortcut to the
>>>> Nero Manual on the desktop and then set the key in the shortcut. I
>>>> doubt that Nero set anything.
>>>>
>>>> Yes, it was a shortcut that I deleted, but then I reinstated it
>>>> and set the key to "none". I then used the same key in another
>>>> program, which I think works the second way, i.e. the program
>>>> registers the key. (Although I wonder where!)
>>>>
>>>> I will have a look at Tweakui Ver 1.33 and see what I can find. I
>>>> already have a version of TweakUI (File Version 2.10.0.0). If the
>>>> other one is later and has more features, including repairing hot
>>>> keys that would be great.
>>>>
>>>> Thanks for the help to date.
>>>>
>>>> "David  Candy" wrote:
>>>>
>>>>> The point is they are ONLY multi language hotkeys for use only
>>>>> with multi language features. It is Soooooooooo unlikely to be
>>>>> under here.
>>>>>
>>>>> So there are two ways (apart from these multilingual features) of
>>>>> setting a hotkey. In shortcuts on Start Menu or Desktop items. By
>>>>> a program registering a hotkey when that program is started.
>>>>>
>>>>> I presume Nero doesn't do this?
>>>>> You have checked all shortcuts (after all it could be in a
>>>>> shortcut to an item you deleted and Windows found the closest
>>>>> match for you)?
>>>>>
>>>>> Tweakui Ver 1.33 has a repair hotkey feature.
>>>>>
http://www.microsoft.com/NTWorkstation/downloads/PowerToys/Networking/NTTweakUI.asp
>>>>>
>>>>> --
>>>>> ----------------------------------------------------------
>>>>> http://www.uscricket.com
>>>>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message
>>>>> news:B44A0D3A-3095-49F6-9D07-C3072C3150C7@microsoft.com...
>>>>>> Wes and David,
>>>>>>
>>>>>> All good things come to an end.
>>>>>>
>>>>>> I now find that Ctl-Alt-R invokes the old program again - Nero
>>>>>> BurningRom Help Manual. (I have restarted the computer since it
>>>>>> last worked as I wanted.)
>>>>>>
>>>>>> The contents of HKEY_CURRENT_USER\Control Panel\Input Method\Hot
>>>>>> Keys follows
>>>>>>
>>>>>> START
>>>>>> Windows Registry Editor Version 5.00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys]
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000010]
>>>>>> "Key Modifiers"=hex:02,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:20,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000011]
>>>>>> "Key Modifiers"=hex:04,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:20,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000012]
>>>>>> "Key Modifiers"=hex:02,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:be,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000070]
>>>>>> "Key Modifiers"=hex:02,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:20,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000071]
>>>>>> "Key Modifiers"=hex:04,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:20,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000072]
>>>>>> "Key Modifiers"=hex:03,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:bc,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000200]
>>>>>> "Key Modifiers"=hex:03,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:47,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000201]
>>>>>> "Key Modifiers"=hex:03,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:4b,00,00,00
>>>>>>
>>>>>> [HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000202]
>>>>>> "Key Modifiers"=hex:03,c0,00,00
>>>>>> "Target IME"=hex:00,00,00,00
>>>>>> "Virtual Key"=hex:4c,00,00,00
>>>>>> END
>>>>>>
>>>>>> It is difficult to understand what these mean, but I certainly
>>>>>> cannot find any reference to Ctl-Alt-R
>>>>>>
>>>>>> From what you (David) said,
>>>>>> Ctl-Alt should be &H03
>>>>>> R should be &H52
>>>>>> This combination does not appear anywhere!
>>>>>>
>>>>>> So I assume that the reference to Ctl-Alt-R is not stored in Hot
>>>>>> Keys
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> It doesn't have to involve Registry tweaking so long as I can
>>>>>> reuse the Key (or any other key, for that matter) .
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> "Wesley Vogel" wrote:
>>>>>>
>>>>>>> Trevor,
>>>>>>>
>>>>>>> See David Candy's post.  I mentioned that I couldn't read hex,
>>>>>>> he can.
>>>>>>>
>>>>>>> Glad to hear that you got it sorted out.
>>>>>>>
>>>>>>> BTW, I'm still deciphering David's post.  :-)  And working on
>>>>>>> 49 other things.
>>>>>>>
>>>>>>> --
>>>>>>> Hope this helps.  Let us know.
>>>>>>> Wes
>>>>>>>
>>>>>>> In news:D8905772-8EDE-422F-B704-BF118DCB379C@microsoft.com,
>>>>>>> Trevor L. <TrevorL@discussions.microsoft.com> hunted and pecked:
>>>>>>>> Zulu and Wes,
>>>>>>>> Thanks to you both
>>>>>>>>
>>>>>>>> Zulu,
>>>>>>>> Yes, I will set the shortcut key as you suggested.
>>>>>>>> I will try different keys, including Function keys - sounds
>>>>>>>> good.
>>>>>>>>
>>>>>>>> Wes,
>>>>>>>> I have yet to try your suggestions for the Registry, but am
>>>>>>>> looking forward to it.
>>>>>>>>
>>>>>>>> BTW,
>>>>>>>> I have managed to assign the key I used before to the new
>>>>>>>> program. Whether this is the only way or not or whetehr it
>>>>>>>> will continue to work, I don't know, but here is what I did.
>>>>>>>>
>>>>>>>> I re-created the old Shortcut (it had been deleted) and
>>>>>>>> enetered the old shortcut key. I tested it and it worked
>>>>>>>> (referring to the old program). I then changed the key in that
>>>>>>>> shortcut to "none" and tried the shortcut key again  - it did
>>>>>>>> nothing  (as one would hope). I then allocated the key to the
>>>>>>>> new program, tried it, and it worked !!
>>>>>>>>
>>>>>>>> I still have the old shortcut with key set to "none", but
>>>>>>>> that's OK - I just moved it a general folder with other
>>>>>>>> shortcuts - not the desktop, which I don't want cluttered.
>>>>>>>>
>>>>>>>> I don't know whether this is worth posting anywhere, as the KB
>>>>>>>> article I read (can't remember the number) said keys cannot be
>>>>>>>> reallocated, as did you , Wes.
>>>>>>>>
>>>>>>>> Many thanks
>>>>>>>>
>>>>>>>> "Trevor L." wrote:
>>>>>>>>
>>>>>>>>> Wes,
>>>>>>>>>
>>>>>>>>> I am disappointed that I can't reassign a shortcut key to
>>>>>>>>> another program. As I say, there are only so many
>>>>>>>>> combinations one can use before you run out of keys - 26
>>>>>>>>> alpha, 10 numeric (and perhaps the 12 Function keys although
>>>>>>>>> I have ever tried these, so I don't know).
>>>>>>>>>
>>>>>>>>> I have already deleted the shortcut to the Nero Help Manual,
>>>>>>>>> but before I did, I made sure that the shortcut key was set
>>>>>>>>> to "(none)". Thanks for the info. as to how to find what key
>>>>>>>>> is assigned to a particular shortcut, but since changing it
>>>>>>>>> to "(none)" and deleting it makes no difference, it sort of
>>>>>>>>> doesn't help too much.
>>>>>>>>>
>>>>>>>>> Do you know where the info. is stored as to what shortcut key
>>>>>>>>> opens what program?
>>>>>>>>>
>>>>>>>>> Because the info. is retained after the shortcut itself is
>>>>>>>>> deleted, I would assume that the info. must be stored in the
>>>>>>>>> Registry. But I searched the registry for the value
>>>>>>>>> "BurningRom" (as the name of the program opened by the
>>>>>>>>> shortcut key is "C:\Program
>>>>>>>>> Files\Ahead\Nero\NeroBurningRom_Eng.pdf"). But no entry that
>>>>>>>>> I found seemed to contain any info. about shortcut key
>>>>>>>>> values.
>>>>>>>>>
>>>>>>>>> If I could edit the registry to remove/change shortcut key
>>>>>>>>> assignments, that would solve the problem.
>>>>>>>>>
>>>>>>>>> Many thanks
>>>>>>>>>
>>>>>>>>> "Wesley Vogel" wrote:
>>>>>>>>>
>>>>>>>>>> Once you assign a shortcut key combination for a specific
>>>>>>>>>> program, you will not be able to use that key combination
>>>>>>>>>> with other programs.
>>>>>>>>>>
>>>>>>>>>> Find the Nero Help Manual or the shortcut to same.  Delete
>>>>>>>>>> the shortcut, if it exists.
>>>>>>>>>>
>>>>>>>>>> Follow the instructions below if no shortcut.
>>>>>>>>>>
>>>>>>>>>> If you forget the key combination for your shortcut, you can
>>>>>>>>>> follow steps 2 through 3 and review your shortcut keys.
>>>>>>>>>>
>>>>>>>>>> 2. Locate the program file (.exe) or the program's shortcut
>>>>>>>>>> icon. Right-click the program file or shortcut, and then
>>>>>>>>>> click Properties.
>>>>>>>>>>
>>>>>>>>>> 3. Click the Program tab for an MS-DOS program or the
>>>>>>>>>> Shortcut tab for a Windows program.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Hope this helps.  Let us know.
>>>>>>>>>> Wes
>>>>>>>>>>
>>>>>>>>>> In news:B39E0365-478D-4EF2-AADC-5CE8FB2F9D60@microsoft.com,
>>>>>>>>>> Trevor L. <TrevorL@discussions.microsoft.com> hunted and
>>>>>>>>>> pecked:
>>>>>>>>>>> I used to have a Shortcut Ctl-Alt-R which opened a User
>>>>>>>>>>> manual (actually for Nero). I no longer want to do this as
>>>>>>>>>>> I am fairly used to Nero now and can open it directly when
>>>>>>>>>>> I want to, so I changed the key to (none).
>>>>>>>>>>>
>>>>>>>>>>> I later decided to re-use Ctl-Alt-R to invoke a program
>>>>>>>>>>> which will restart the PC. (I changed the setting in this
>>>>>>>>>>> program to use this sequence.)
>>>>>>>>>>>
>>>>>>>>>>> But I find that using Ctl-Alt-R still invokes the User
>>>>>>>>>>> manual. There was some info. on a Microsoft KB document re
>>>>>>>>>>> this problem, but I can't get it to work. I made sure that
>>>>>>>>>>> the old Shortcut had (none), then deleted it.
>>>>>>>>>>>
>>>>>>>>>>> As there are limited letters to use with Ctl-Alt, the
>>>>>>>>>>> ability to reuse them is important. Can anyone help?
>>>>>>>>>>> However, the Ctl-Alt-R sequence still opend the Help Manual.


Relevant Pages

  • Re: Shortcut keys cannot be re-used
    ... All tweakui have features that the other don't. ... My whole point of joining in was to say those registry keys are probably irrelevent. ... When starting a program one can specify a hotkey for the main window. ... The hotkey is stored in the shortcut. ...
    (microsoft.public.windowsxp.customize)
  • Re: Shortcut keys cannot be re-used
    ... >> My whole point of joining in was to say those registry keys are probably irrelevent. ... >> When starting a program one can specify a hotkey for the main window. ... A program can register a hotkey for it's own main window. ... The hotkey is stored in the shortcut. ...
    (microsoft.public.windowsxp.customize)
  • Re: Shortcut keys cannot be re-used
    ... > David and Wes, ... >> My whole point of joining in was to say those registry keys are probably irrelevent. ... A program can register a hotkey for it's own main window. ... The hotkey is stored in the shortcut. ...
    (microsoft.public.windowsxp.customize)
  • Re: Shortcut keys cannot be re-used
    ... > Manual even there is no shortcut present with this set. ... >> My whole point of joining in was to say those registry keys are probably irrelevent. ... A program can register a hotkey for it's own main window. ... >> I've attached a script that prints hotkey in a msgbox, and include the content in the body here ...
    (microsoft.public.windowsxp.customize)
  • Re: Norton
    ... I am using Norton Systems Works. ... check up (which does registry scan and its shortcut scan checks for ... Is their any free alternatives for these features or we can do without these ... > messing with the registry. ...
    (microsoft.public.windowsxp.basics)