Make the sleep button to do something else?
Make the sleep button to do something else?
Is it possible if AHK can't detect the key.
- Almost_there
- Posts: 404
- Joined: 30 Sep 2014, 10:32
Re: Make the sleep button to do something else?
None of my computers is equiped with a "sleep" button - quite confident that ahk can't detect that button. What language/keyboard language do you have?
Re: Make the sleep button to do something else?
In the List of Keys the key Sleep is defined try that.
Please excuse my spelling I am dyslexic.
Re: Make the sleep button to do something else?
As I said,AHK don't detect the key at all...VK/SC/Name,nothing.
Re: Make the sleep button to do something else?
Sorry thought it was a grammatical error, we get them some times.vsub wrote:As I said,AHK don't detect the key at all...VK/SC/Name,nothing.
Please excuse my spelling I am dyslexic.
Re: Make the sleep button to do something else?
The keyboard is some weird Fujitsu keyboard that have a sleep button which does that if I set to do it
Control Panel\Hardware and Sound\Power Options\System Settings
but setting it to "Do nothing" and checking with ahk to see what key it's actually pressed,ahk don't react at all only on that key(all else is detected)
On my old(now dead)keyboard I also had that key and power too and I was using the keys scan code to do different things
Control Panel\Hardware and Sound\Power Options\System Settings
but setting it to "Do nothing" and checking with ahk to see what key it's actually pressed,ahk don't react at all only on that key(all else is detected)
On my old(now dead)keyboard I also had that key and power too and I was using the keys scan code to do different things
Re: Make the sleep button to do something else?
Per the Special Keys documentation, if the Sleep command, SC code, and the other workarounds don't work, you're unfortunately out of luck.
Re: Make the sleep button to do something else?
but how do you get the SC code of the sleep button ? (I can't use the "key history" inbuilt tool since it put the PC to sleep...)