Windows 10: Maintaining custom keyboard shortcuts across restarts

Discus and support Maintaining custom keyboard shortcuts across restarts in Windows 10 Support to solve the problem; My keyboard does does not have a sleep button so I setup a desktop shortcut with the command line command (rundll32.exe powrprof.dll,SetSuspendState... Discussion in 'Windows 10 Support' started by windows1231, Apr 4, 2016.

  1. Maintaining custom keyboard shortcuts across restarts


    My keyboard does does not have a sleep button so I setup a desktop shortcut with the command line command (rundll32.exe powrprof.dll,SetSuspendState 0,1,0) per instructions on various sites and setup a keyboard shortcut of F2 in the Properties. It works, but then when I restart the computer, it does not remember the shortcut. My guesses are either
    1) Windows just doesn't remember such custom shortcuts across restarts
    2) F2 is already a standard Windows shortcut for something else, and when I set the shortcut it overrides it, but when I restart the computer the standard shortcut takes over again.
    Does anyone know which applies (or something else), and if 1), is there a way to automatically reestablish the shortcut, and if 2) is there a way to automatically reestablish the shortcut, or is there a "safe" keyboard shortcut I could use that isn't used for anything else? I would prefer to have to use a key combination since this is for my parents and I went to make it as simple as possible.
    thanks

    :)
     
    windows1231, Apr 4, 2016
    #1

  2. Custom keyboard shortcuts not persisting across restarts

    Thank you for your reply. BTW, just to clarify, I actually did create a desktop shortcut as you described above. What I am trying to do is assign a keyboard shortcut to this desktop shortcut through the Properties->Shortcuts->Key->Shortkey Key feature of
    the desktop shortcut.

    I have tried using another key combination, Ctrl-Alt-End. This works, but once again, once I restart my computer, the shortcut is lost and not re-established. Does that mean that keyboard shortcuts created in this manner do no persist across restarts?

    thank you.
     
    Windows1199, Apr 4, 2016
    #2
  3. Custom keyboard shortcuts not persisting across restarts

    My keyboard does does not have a sleep button so I setup a shortcut with the command line command (rundll32.exe powrprof.dll,SetSuspendState 0,1,0) per instructions on various sites and setup a keyboard shortcut of F2. It works, but then when I restart the
    computer, it does not remember the shortcut. My guesses are either

    1) Windows just doesn't remember such custom shortcuts across restarts

    2) F2 is already a standard Windows shortcut for something else, and when I set the shortcut it overrides it, but when I restart the computer the standard shortcut takes over again.

    Does anyone know which applies, and if 1), is there a way to automatically reestablish the shortcut, and if 2) is there a way to automatically reestablish the shortcut, or is there a "safe" keyboard shortcut I could use that isn't used for anything else?
    I would prefer to have to use a key combination since this is for my parents and I went to make it as simple as possible.

    thanks,

    david
     
    Windows1199, Apr 4, 2016
    #3
  4. Ztruker Win User

    Maintaining custom keyboard shortcuts across restarts

    AutoHotKey is used by many folks to remap key or assign different function to them.
    I'd suggest remapping Scroll Lock since it is almost never used.

    or ...

    Have them press Windows key + X then click on Sleep
     
    Ztruker, Apr 4, 2016
    #4
  5. Fafhrd Win User
    You are right, Windows won't map an F key to a hotkey command without a 3rd party hotkey app. Nor any other single key. But you can map a group of simultaneous key presses to a command:

    right click on the shortcut you have made and select properties - and in the tabbed dialog for shortcut there is the shortcut key:

    by default it says 'None', but click in the box and hold down ctrl, and the box will show CTRL+ALT+ and waits for the letter you choose. Sleep is often represented in cartoons by ZZZzzzz, so why not make the shortcut CTRL+ALT+Z, by pressing the 'Z' key and releasing it and ctrl then select Apply and OK to save it.

    In the shortcut dialog tabs, you can also elect to rename the command to 'sleep', change the icon, give the command administrative rights, and so on.
     
    Fafhrd, Apr 4, 2016
    #5
  6. Thank you for the replies. I will look into AutoHotKey. Regarding the desktop shortcut method I am trying,

    It actually will allow me to map certain single keys as shortcuts (e.g, the function keys, the numeric keypad keys). The problem is that this shortcut does not persist across restarts. I thought it was because I was overriding a shortcut that Windows has reserved for its own use, which is then lost when I restart, but I also tried Ctrl-Alt-End which seems non-standard, but that also seems to not persist across restarts. Does that mean that shortcuts created in this matter in general do not persist across restarts?

    Thanks.
     
    windows1231, Apr 5, 2016
    #6
  7. Update-- realized the problem. Setting a function key shortcut actually does work, but I had moved the shortcut off the desktop into another folder, and so the keyboard shortcut was not getting reset after restarts. Moving it back to the shortcut allows it it to work.
     
    windows1231, Apr 9, 2016
    #7
  8. Maintaining custom keyboard shortcuts across restarts

    To add to this Windows will also look at the shortcuts for any programs in the Start Menu. So you can have a Shortcuts folder there with all your shortcuts and they will persist across reboots. The Start Menu location is different for different versions of windows. I have Windows 10 and its in C:\Users\...\AppData\Roaming\Microsoft\Windows\Start Menu\.
     
    Merlyn2020, Apr 4, 2018
    #8
Thema:

Maintaining custom keyboard shortcuts across restarts

Loading...
  1. Maintaining custom keyboard shortcuts across restarts - Similar Threads - Maintaining custom keyboard

  2. custom keyboard shortcut for Undo and Redo

    in Windows 10 Support
    custom keyboard shortcut for Undo and Redo: I have a program in which I use the "Undo" keyboard shortcut of Ctrl-z, and the "Redo" shortcut of Ctrl-y, dozens of time daily. I am a poor typist an it would be much easier for me to have a single key shortcut for both of these functions. Is it possible to customize Windows...
  3. Is there a way to use a custom icon for a folder but the default is maintained and the...

    in Windows 10 Ask Insider
    Is there a way to use a custom icon for a folder but the default is maintained and the...: I've seen a lot of folders than instead of using the default icon or a custom one, they use a normal folder icon but they have a smaller icon too. A good example is the google drive synced folder, which uses the windows folder icon with the drive logo next to it. Is there a...
  4. How to Turn off custom-set keyboard Shortcut

    in Windows 10 Customization
    How to Turn off custom-set keyboard Shortcut: Hello! I had set 'Num-1' as a shortcut for launching 'Chrome'. However, I want to unset the same. Please Help Thanks! https://answers.microsoft.com/en-us/windows/forum/all/how-to-turn-off-custom-set-keyboard-shortcut/12f049c2-e285-4769-8647-c36ea105fa88
  5. Windows Process for Custom CTRL+ALT keyboard shortcut keys

    in Windows 10 BSOD Crashes and Debugging
    Windows Process for Custom CTRL+ALT keyboard shortcut keys: What windows process executes the custom keyboard shortcuts that a user can define to open files or programs? For example I may have a file on my desktop where I defined CTRL+ALT+E to open a favorite excel file. So whenever I hit this key combo, the excel file opens. I...
  6. Customize Keyboard shortcuts

    in Windows 10 Drivers and Hardware
    Customize Keyboard shortcuts: I want to create keyboard shortcuts using modifiers or combinations thereof to insert characters like # and é without using the Character Map. Is there a way to do this? I have looked through Settings but came up blank....
  7. Using iCloud for Windows to maintain Photo Library across devices?

    in Windows 10 Network and Sharing
    Using iCloud for Windows to maintain Photo Library across devices?: After losing some photos on my iPhone that was not backed up properly, I am determined to get iCloud for Windows set up to safely maintain my Photo Library for storage on iCloud as well as optimized versions on my iPhone and Laptop I use an iPhone and Windows 10 laptop,...
  8. How to create custom Keyboard shortcuts in Windows 10

    in Windows 10 News
    How to create custom Keyboard shortcuts in Windows 10: [ATTACH] [ATTACH]In the quest to maximize productivity and blitz through the flood of Windows 10 applications at top speed, ‘Keyboard Shortcuts’ aid as one secret weapon. Windows 10 offers you the option to create custom keyboard shortcuts that allow you to [...] This post...
  9. Creating Custom Keyboard Shortcuts to Control Volume

    in Windows 10 Customization
    Creating Custom Keyboard Shortcuts to Control Volume: Ok, been looking for a potential solution all morning. I'm wondering, is there's a simple keyboard shortcut that either exists or one I can create to mute the volume of the current app I have open without having to open the volume mixer? It's just slightly annoying when...
  10. Customize Keyboard Shortcuts for Game Bar in Windows 10

    in Windows 10 Tutorials
    Customize Keyboard Shortcuts for Game Bar in Windows 10: How to: Customize Keyboard Shortcuts for Game Bar in Windows 10 How to Customize Keyboard Shortcuts for Game Bar in Windows 10 The capturing clips, and sharing captures to Twitterall from one dashboard in Windows 10. The default keyboard shortcuts for Game bar...