I am using a windows 8 laptop. My old laptop had a key combo, fn+f5, which would make the computer go to sleep. My new laptop has a power button on the side that acts like the one on your phone, it puts the PC to standby/sleep. But i don't like hardware buttons because they wear out. I plugged in a logitech keyboard that has a dedicated key with the power button symbol and when you press it, it does the same thing. (i did not install any software or drivers btw, just plugged it in) My goal is to use autohotkey to assign a key combo to send the same keycode. There are baked-in some windows functions (I don't know what to call them. Shell commands?) that are supposed to put the PC to sleep but they always put it into hibernation or shut it down, not what i want, which is why i am resorting to this. Does anyone know how to intercept keycodes or something?
相关问题
- Why Isn't My Windows 10 PC Waking Up after a S
- How to implement only emoji keyboard for Entry?
- Is there a way to show a number pad (preferably wi
- jQuery keyup keyCode doesn't work in Opera
- Is Sleep() inaccurate?
相关文章
- How do you detect key up / key down events from a
- How to show the keyboard for a UIView
- Android soft keyboard not working
- Why does the escape key have a delay in Python cur
- What is the C# equivalent of ChrW(e.KeyCode)?
- Pause a thread for less than one millisecond
- how to get the height of the keyboard including th
- sleep in emacs lisp
Paste this into a text file and save as .AHK and run.
AHK Literature on Special Keys - Link
AHK Literature on InstallKeyboardHook - Link