My keyboard does not have a "Sleep" Key to put my PC to sleep, so I created a Windows Shorcut to put my PC to sleep.
Now I want to map a single specific Key to that Shortcut, but all Windows Shortcuts start with "Ctr + Alt", which makes any Windows Shorcut require a minimum of 3 Key presses.
So I would like to map a specific single Key to my "Sleep" Shorcut so that I can put my PC to sleep by simply pressing that single Key. I have never in my life used the "Pause/Break" Key on my keyboard, so that would be a perfect candidate.
How can I remap the "Pause/Break" Key to the "Sleep" Shorcut I created?
(Alternatively, is there another way to put my PC to sleep using a single Key on a keyboard that does not have a "Sleep" Key?)
Best Answer
This is easily accomplished with AutoHotKey.
The script would be:
Obviously, put the path to your shortcut in the quotes.
There are other methods to sleep, shutdown, hibernate, or restart your PC. You can find the commands here. Read through the comments though on the selected answer, there are some caveats that can be worked around.
Personally, I love AutoHotKey. I remap the media keys on my keyboard (I never use them for media) to do things like open a command prompt, start a remote desktop session, open Notepad++, start the snipping tool, etc.