How to know the SC code of the "sleep" key? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
partof
Posts: 110
Joined: 16 Jan 2016, 08:38

How to know the SC code of the "sleep" key?

Post by partof » 26 Nov 2020, 11:58

I'm trying to remap (disable) the sleep key from my keyboard

this doesn't work

Code: Select all

Sleep:: return
I would like to try with the "SC code" of this key, but don't know how to get it. (I can't use ahk's inbuild tool since it puts the PC to sleep when I press the sleep button)

Thanks!

User avatar
gregster
Posts: 9224
Joined: 30 Sep 2013, 06:48

Re: How to know the SC code of the "sleep" key?  Topic is solved

Post by gregster » 26 Nov 2020, 12:37

On my computer, I disabled that key in the Windows settings (on Win10) - I think, in the power settings.

partof
Posts: 110
Joined: 16 Jan 2016, 08:38

Re: How to know the SC code of the "sleep" key?

Post by partof » 27 Nov 2020, 02:04

Thank you, yes that did it! (And I can still use my laptop power button!)

Post Reply

Return to “Ask for Help (v1)”