Remap Sleep Button

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Chefkoch2000
Posts: 3
Joined: 10 Dec 2018, 05:58

Remap Sleep Button

11 Dec 2018, 10:22

Hey all,

Newbie here. I use my mouse with my left hand, therefore I installed autohotkey to make shortcuts more accessible with my right hand, works like a charm.

I now use a dasKeyboard 4 Professional, which has a sleep button. I would like to remap this sleep button - which seems to directly access the sleep function from power management - to a simple lock screen. How can I do that, can I access the sleep button via scancode?

I work under Win7 with no admin rights.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Remap Sleep Button

11 Dec 2018, 10:35

is a scancode being detected? run a script with #InstallKeybdHook enabled and check the Key History
Chefkoch2000
Posts: 3
Joined: 10 Dec 2018, 05:58

Re: Remap Sleep Button

13 Dec 2018, 04:33

Hi, thanks for your input - I just got the chance to test it at work.

No - there is no scancode being detected in the Key History. I there a workaround?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Remap Sleep Button

13 Dec 2018, 05:50

maybe u could hook it with the interception driver
http://www.oblita.com/interception
https://github.com/evilC/AutoHotInterception
gl not borking ur keyboard
Chefkoch2000
Posts: 3
Joined: 10 Dec 2018, 05:58

Re: Remap Sleep Button

13 Dec 2018, 10:02

Thanks but I'll pass on this one, its getting too big of an effort for that one key

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: inseption86, mikeyww and 462 guests