Shortcut keys cannot be re-used

Page 2 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.
Archived from groups: microsoft.public.windowsxp.customize (More info?)

These are settings for all users.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
This is for 95/98 programs. It uses absolute paths and Reg_sz data type
Common Start Menu=C:\Documents and Settings\All Users\Start Menu

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
This is for faulty ME/XP/2000 programs that incorrectly read the registry. It uses variables and Reg_Expand_sz (which tells it to convert variables to absolute paths)
Common Start Menu=%ALLUSERSPROFILE%\Start Menu

These are for your user only. Comments above apply to the respective last key name.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Programs (and commonprograms) and Startup (and commonstartup) are other Start Menu sub folders.


--
----------------------------------------------------------
http://www.uscricket.com
"Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news😀E56C4A6-5487-4B83-85AF-F93A45AE729B@microsoft.com...
> David,
> Wonderful,
>
> I changed C:\findhotkeys.bat so that "%A" became "%%A" and findhotkey.vbs
> became C:\findhotkey.vbs, and from the CMD prompt ran C:\findhotkeys.bat >
> C:\hotkeys.txt
>
> The .bat file and the .vbs file have different names as Wes' response
> suggests. C:\findhotkeys.bat calls C:\findhotkey.vbs
>
> I got a window for every shortcut with a hotkey and in C:\hotkeys.txt I got
> every shortcut listed, with or without a shortcut key set.
>
> The set of windows and the list of shortcuts repeated which must mean that
> %UserProfile% is the same as %AllUsersProfile%.
>
> It is great to actually succeed in doing this. However, no result showed a
> key Alt+Ctl+R, which is the hotkey causing the problem.
>
> Cheers
>
> "David Candy" wrote:
>
>> Also in bat files what you type as %<letter> in a prompt you use %%<letter> in a bat (that is pretty much the only difference between typing and bats). Again no start or end. Also the script is called once for each shortcut. If you have 100 shortcuts you need to allow it to run 100 times.
>>
>> Also it's safer when one has two executables of the same name to specify the extension
>> findhotkeys.bat
>> although in this case bat have precedence over vbs.
>> --
>> ----------------------------------------------------------
>> http://www.uscricket.com
>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news:C21DF1E8-F1CB-43FC-A2D9-410AC74EB8DC@microsoft.com...
>> > David and Wes,
>> > I must be as thick as a brick.
>> >
>> > I cannot get either of the two files to run.
>> >
>> > This is C:\findhotkey.vbs (copied exactly as David sent it - I have added
>> > START and END delimiters)
>> > START
>> > 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
>> > END
>> >
>> > Double-clicking it caused a response from Norton
>> > "Alert:Malicious Script detected"
>> >
>> > I selected "Allow the entire script once" and pressed OK and I got
>> > absolutely nothing
>> >
>> > This is C:\findhotkeys.bat (modified as suggested by David so that "%A" is
>> > at the end of the line - I have added START and END delimiters)
>> > START
>> > cd %UserProfile%\desktop
>> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> > for %A in (*.pif) do findhotkey.vbs "%A"
>> > for %A in (*.url) do findhotkey.vbs "%A"
>> > cd %AllUsersProfile%\desktop
>> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> > for %A in (*.pif) do findhotkey.vbs "%A"
>> > for %A in (*.url) do findhotkey.vbs "%A"
>> > cd %UserProfile%\Start Menu
>> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> > cd %AllUsersProfile%\Start Menu
>> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> > END
>> >
>> > I opened the Command Prompt, changed directory to C: (command cd \) and
>> > typed findhotkeys (to execute the .bat file of that name)
>> >
>> > The result was
>> > C:\>cd C:\Documents and Settings\Trevor\
>> > desktop
>> > A" was unexpected at this time.
>> >
>> > I restarted the computer and tried again with exactly the same result.
>> >
>> > I note that both of you have run this successfully, so what is dunderhead
>> > (namely me!) doing wrong?
>> >
>> > 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😀8905772-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.
>> >> >> >>
>> >> >> >>
>> >> >>
>>
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

Also thinking about how the bat file is coded.

Check under here
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

and what does echo %allusersprofile% say?
--
----------------------------------------------------------
http://www.uscricket.com
"Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news😀E56C4A6-5487-4B83-85AF-F93A45AE729B@microsoft.com...
> David,
> Wonderful,
>
> I changed C:\findhotkeys.bat so that "%A" became "%%A" and findhotkey.vbs
> became C:\findhotkey.vbs, and from the CMD prompt ran C:\findhotkeys.bat >
> C:\hotkeys.txt
>
> The .bat file and the .vbs file have different names as Wes' response
> suggests. C:\findhotkeys.bat calls C:\findhotkey.vbs
>
> I got a window for every shortcut with a hotkey and in C:\hotkeys.txt I got
> every shortcut listed, with or without a shortcut key set.
>
> The set of windows and the list of shortcuts repeated which must mean that
> %UserProfile% is the same as %AllUsersProfile%.
>
> It is great to actually succeed in doing this. However, no result showed a
> key Alt+Ctl+R, which is the hotkey causing the problem.
>
> Cheers
>
> "David Candy" wrote:
>
>> Also in bat files what you type as %<letter> in a prompt you use %%<letter> in a bat (that is pretty much the only difference between typing and bats). Again no start or end. Also the script is called once for each shortcut. If you have 100 shortcuts you need to allow it to run 100 times.
>>
>> Also it's safer when one has two executables of the same name to specify the extension
>> findhotkeys.bat
>> although in this case bat have precedence over vbs.
>> --
>> ----------------------------------------------------------
>> http://www.uscricket.com
>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news:C21DF1E8-F1CB-43FC-A2D9-410AC74EB8DC@microsoft.com...
>> > David and Wes,
>> > I must be as thick as a brick.
>> >
>> > I cannot get either of the two files to run.
>> >
>> > This is C:\findhotkey.vbs (copied exactly as David sent it - I have added
>> > START and END delimiters)
>> > START
>> > 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
>> > END
>> >
>> > Double-clicking it caused a response from Norton
>> > "Alert:Malicious Script detected"
>> >
>> > I selected "Allow the entire script once" and pressed OK and I got
>> > absolutely nothing
>> >
>> > This is C:\findhotkeys.bat (modified as suggested by David so that "%A" is
>> > at the end of the line - I have added START and END delimiters)
>> > START
>> > cd %UserProfile%\desktop
>> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> > for %A in (*.pif) do findhotkey.vbs "%A"
>> > for %A in (*.url) do findhotkey.vbs "%A"
>> > cd %AllUsersProfile%\desktop
>> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> > for %A in (*.pif) do findhotkey.vbs "%A"
>> > for %A in (*.url) do findhotkey.vbs "%A"
>> > cd %UserProfile%\Start Menu
>> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> > cd %AllUsersProfile%\Start Menu
>> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> > END
>> >
>> > I opened the Command Prompt, changed directory to C: (command cd \) and
>> > typed findhotkeys (to execute the .bat file of that name)
>> >
>> > The result was
>> > C:\>cd C:\Documents and Settings\Trevor\
>> > desktop
>> > A" was unexpected at this time.
>> >
>> > I restarted the computer and tried again with exactly the same result.
>> >
>> > I note that both of you have run this successfully, so what is dunderhead
>> > (namely me!) doing wrong?
>> >
>> > 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😀8905772-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.
>> >> >> >>
>> >> >> >>
>> >> >>
>>
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

David,
Well, I think it is all sorted out.

When I changed %A to %%A I used "Replace All" in Notepad which also changed
%AllUsersProfile% to %%AllUsersProfile%. Since the latter doesn't exist, the
directory wasn't changed and the batch file re-searched the old one.

When I corrected this error, the batch file went through the All Users
directory correctly.
(As expected, echo %AllUsersProfile% returned C:\Documents and Settings\All
Users and
echo %UserProfile% returned C:\Documents and Settings\Trevor )

I have also solved my problem. I searched C: drive for Nero*.lnk, and
manually checked each relevant shortcut for Alt+Ctl+R. I found the offender
in "Unused Desktop Shortcuts", changed the hotkey to "none", altered the
other program to use Alt+Ctl+R and hi presto - success!

It has been a long haul, but an obvious answer, eventually.

This suggests that a more generalised batch file could be written to seach
for all occurences of *.lnk on any directory in any drive. Perhaps it would
take a long time to run, though !! 🙂

Maybe, I can do it myself as I have written a few batch files since starting
to use PCs at work, and I have your example to guide me.

Many thanks for your patience and help.

"David Candy" wrote:

> Also thinking about how the bat file is coded.
>
> Check under here
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
>
> and what does echo %allusersprofile% say?
> --
> ----------------------------------------------------------
> http://www.uscricket.com
> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news😀E56C4A6-5487-4B83-85AF-F93A45AE729B@microsoft.com...
> > David,
> > Wonderful,
> >
> > I changed C:\findhotkeys.bat so that "%A" became "%%A" and findhotkey.vbs
> > became C:\findhotkey.vbs, and from the CMD prompt ran C:\findhotkeys.bat >
> > C:\hotkeys.txt
> >
> > The .bat file and the .vbs file have different names as Wes' response
> > suggests. C:\findhotkeys.bat calls C:\findhotkey.vbs
> >
> > I got a window for every shortcut with a hotkey and in C:\hotkeys.txt I got
> > every shortcut listed, with or without a shortcut key set.
> >
> > The set of windows and the list of shortcuts repeated which must mean that
> > %UserProfile% is the same as %AllUsersProfile%.
> >
> > It is great to actually succeed in doing this. However, no result showed a
> > key Alt+Ctl+R, which is the hotkey causing the problem.
> >
> > Cheers
> >
> > "David Candy" wrote:
> >
> >> Also in bat files what you type as %<letter> in a prompt you use %%<letter> in a bat (that is pretty much the only difference between typing and bats). Again no start or end. Also the script is called once for each shortcut. If you have 100 shortcuts you need to allow it to run 100 times.
> >>
> >> Also it's safer when one has two executables of the same name to specify the extension
> >> findhotkeys.bat
> >> although in this case bat have precedence over vbs.
> >> --
> >> ----------------------------------------------------------
> >> http://www.uscricket.com
> >> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news:C21DF1E8-F1CB-43FC-A2D9-410AC74EB8DC@microsoft.com...
> >> > David and Wes,
> >> > I must be as thick as a brick.
> >> >
> >> > I cannot get either of the two files to run.
> >> >
> >> > This is C:\findhotkey.vbs (copied exactly as David sent it - I have added
> >> > START and END delimiters)
> >> > START
> >> > 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
> >> > END
> >> >
> >> > Double-clicking it caused a response from Norton
> >> > "Alert:Malicious Script detected"
> >> >
> >> > I selected "Allow the entire script once" and pressed OK and I got
> >> > absolutely nothing
> >> >
> >> > This is C:\findhotkeys.bat (modified as suggested by David so that "%A" is
> >> > at the end of the line - I have added START and END delimiters)
> >> > START
> >> > cd %UserProfile%\desktop
> >> > for %A in (*.lnk) do findhotkey.vbs "%A"
> >> > for %A in (*.pif) do findhotkey.vbs "%A"
> >> > for %A in (*.url) do findhotkey.vbs "%A"
> >> > cd %AllUsersProfile%\desktop
> >> > for %A in (*.lnk) do findhotkey.vbs "%A"
> >> > for %A in (*.pif) do findhotkey.vbs "%A"
> >> > for %A in (*.url) do findhotkey.vbs "%A"
> >> > cd %UserProfile%\Start Menu
> >> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
> >> > for /r %A in (*.pif) do findhotkey.vbs "%A"
> >> > for /r %A in (*.url) do findhotkey.vbs "%A"
> >> > cd %AllUsersProfile%\Start Menu
> >> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
> >> > for /r %A in (*.pif) do findhotkey.vbs "%A"
> >> > for /r %A in (*.url) do findhotkey.vbs "%A"
> >> > END
> >> >
> >> > I opened the Command Prompt, changed directory to C: (command cd \) and
> >> > typed findhotkeys (to execute the .bat file of that name)
> >> >
> >> > The result was
> >> > C:\>cd C:\Documents and Settings\Trevor\
> >> > desktop
> >> > A" was unexpected at this time.
> >> >
> >> > I restarted the computer and tried again with exactly the same result.
> >> >
> >> > I note that both of you have run this successfully, so what is dunderhead
> >> > (namely me!) doing wrong?
> >> >
> >> > 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😀8905772-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.
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >>
>
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

Trevor,

Unused Desktop Shortcuts folder implies that the Desktop Cleanup Wizard has
run at least once. Have your turned it off?

HOW TO: Disable the Automatic Desktop Cleanup Feature in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;320154

Empty Temp Folders 2.8.3 has a broken shortcut checker. It finds all *.lnk
files and then lists the broken ones. Doesn't take long to run.

Glad you got rid of the Alt+Ctl+R Nero*.lnk.

--
Hope this helps. Let us know.
Wes

In news:166072BD-33EC-49E5-BEC5-5EE4577F6D28@microsoft.com,
Trevor L. <TrevorL@discussions.microsoft.com> hunted and pecked:
> David,
> Well, I think it is all sorted out.
>
> When I changed %A to %%A I used "Replace All" in Notepad which also
> changed %AllUsersProfile% to %%AllUsersProfile%. Since the latter
> doesn't exist, the directory wasn't changed and the batch file
> re-searched the old one.
>
> When I corrected this error, the batch file went through the All Users
> directory correctly.
> (As expected, echo %AllUsersProfile% returned C:\Documents and
> Settings\All Users and
> echo %UserProfile% returned C:\Documents and Settings\Trevor )
>
> I have also solved my problem. I searched C: drive for Nero*.lnk, and
> manually checked each relevant shortcut for Alt+Ctl+R. I found the
> offender in "Unused Desktop Shortcuts", changed the hotkey to "none",
> altered the other program to use Alt+Ctl+R and hi presto - success!
>
> It has been a long haul, but an obvious answer, eventually.
>
> This suggests that a more generalised batch file could be written to
> seach for all occurences of *.lnk on any directory in any drive.
> Perhaps it would take a long time to run, though !! 🙂
>
> Maybe, I can do it myself as I have written a few batch files since
> starting to use PCs at work, and I have your example to guide me.
>
> Many thanks for your patience and help.
>
> "David Candy" wrote:
>
>> Also thinking about how the bat file is coded.
>>
>> Check under here
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
>> NT\CurrentVersion\ProfileList
>>
>> and what does echo %allusersprofile% say?
>> --
>> ----------------------------------------------------------
>> http://www.uscricket.com
>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message
>> news😀E56C4A6-5487-4B83-85AF-F93A45AE729B@microsoft.com...

<snip>
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

I'm glad it solved.

Put a /r to recurse sub directories. See the start menu examples.

MS has NEVER said it does sub folders of the desktop. What they say imply otherwise.

And people have not solved this problem over the last three years. So congrats.
--
----------------------------------------------------------
http://www.uscricket.com
"Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news:166072BD-33EC-49E5-BEC5-5EE4577F6D28@microsoft.com...
> David,
> Well, I think it is all sorted out.
>
> When I changed %A to %%A I used "Replace All" in Notepad which also changed
> %AllUsersProfile% to %%AllUsersProfile%. Since the latter doesn't exist, the
> directory wasn't changed and the batch file re-searched the old one.
>
> When I corrected this error, the batch file went through the All Users
> directory correctly.
> (As expected, echo %AllUsersProfile% returned C:\Documents and Settings\All
> Users and
> echo %UserProfile% returned C:\Documents and Settings\Trevor )
>
> I have also solved my problem. I searched C: drive for Nero*.lnk, and
> manually checked each relevant shortcut for Alt+Ctl+R. I found the offender
> in "Unused Desktop Shortcuts", changed the hotkey to "none", altered the
> other program to use Alt+Ctl+R and hi presto - success!
>
> It has been a long haul, but an obvious answer, eventually.
>
> This suggests that a more generalised batch file could be written to seach
> for all occurences of *.lnk on any directory in any drive. Perhaps it would
> take a long time to run, though !! 🙂
>
> Maybe, I can do it myself as I have written a few batch files since starting
> to use PCs at work, and I have your example to guide me.
>
> Many thanks for your patience and help.
>
> "David Candy" wrote:
>
>> Also thinking about how the bat file is coded.
>>
>> Check under here
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
>>
>> and what does echo %allusersprofile% say?
>> --
>> ----------------------------------------------------------
>> http://www.uscricket.com
>> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news😀E56C4A6-5487-4B83-85AF-F93A45AE729B@microsoft.com...
>> > David,
>> > Wonderful,
>> >
>> > I changed C:\findhotkeys.bat so that "%A" became "%%A" and findhotkey.vbs
>> > became C:\findhotkey.vbs, and from the CMD prompt ran C:\findhotkeys.bat >
>> > C:\hotkeys.txt
>> >
>> > The .bat file and the .vbs file have different names as Wes' response
>> > suggests. C:\findhotkeys.bat calls C:\findhotkey.vbs
>> >
>> > I got a window for every shortcut with a hotkey and in C:\hotkeys.txt I got
>> > every shortcut listed, with or without a shortcut key set.
>> >
>> > The set of windows and the list of shortcuts repeated which must mean that
>> > %UserProfile% is the same as %AllUsersProfile%.
>> >
>> > It is great to actually succeed in doing this. However, no result showed a
>> > key Alt+Ctl+R, which is the hotkey causing the problem.
>> >
>> > Cheers
>> >
>> > "David Candy" wrote:
>> >
>> >> Also in bat files what you type as %<letter> in a prompt you use %%<letter> in a bat (that is pretty much the only difference between typing and bats). Again no start or end. Also the script is called once for each shortcut. If you have 100 shortcuts you need to allow it to run 100 times.
>> >>
>> >> Also it's safer when one has two executables of the same name to specify the extension
>> >> findhotkeys.bat
>> >> although in this case bat have precedence over vbs.
>> >> --
>> >> ----------------------------------------------------------
>> >> http://www.uscricket.com
>> >> "Trevor L." <TrevorL@discussions.microsoft.com> wrote in message news:C21DF1E8-F1CB-43FC-A2D9-410AC74EB8DC@microsoft.com...
>> >> > David and Wes,
>> >> > I must be as thick as a brick.
>> >> >
>> >> > I cannot get either of the two files to run.
>> >> >
>> >> > This is C:\findhotkey.vbs (copied exactly as David sent it - I have added
>> >> > START and END delimiters)
>> >> > START
>> >> > 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
>> >> > END
>> >> >
>> >> > Double-clicking it caused a response from Norton
>> >> > "Alert:Malicious Script detected"
>> >> >
>> >> > I selected "Allow the entire script once" and pressed OK and I got
>> >> > absolutely nothing
>> >> >
>> >> > This is C:\findhotkeys.bat (modified as suggested by David so that "%A" is
>> >> > at the end of the line - I have added START and END delimiters)
>> >> > START
>> >> > cd %UserProfile%\desktop
>> >> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> >> > for %A in (*.pif) do findhotkey.vbs "%A"
>> >> > for %A in (*.url) do findhotkey.vbs "%A"
>> >> > cd %AllUsersProfile%\desktop
>> >> > for %A in (*.lnk) do findhotkey.vbs "%A"
>> >> > for %A in (*.pif) do findhotkey.vbs "%A"
>> >> > for %A in (*.url) do findhotkey.vbs "%A"
>> >> > cd %UserProfile%\Start Menu
>> >> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> >> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> >> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> >> > cd %AllUsersProfile%\Start Menu
>> >> > for /r %A in (*.lnk) do findhotkey.vbs "%A"
>> >> > for /r %A in (*.pif) do findhotkey.vbs "%A"
>> >> > for /r %A in (*.url) do findhotkey.vbs "%A"
>> >> > END
>> >> >
>> >> > I opened the Command Prompt, changed directory to C: (command cd \) and
>> >> > typed findhotkeys (to execute the .bat file of that name)
>> >> >
>> >> > The result was
>> >> > C:\>cd C:\Documents and Settings\Trevor\
>> >> > desktop
>> >> > A" was unexpected at this time.
>> >> >
>> >> > I restarted the computer and tried again with exactly the same result.
>> >> >
>> >> > I note that both of you have run this successfully, so what is dunderhead
>> >> > (namely me!) doing wrong?
>> >> >
>> >> > 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😀8905772-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.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >>
>>