Keys stop working often.

Report problems with documented functionality
Posts: 1
Joined: 01 Nov 2017, 11:00

Keys stop working often.

01 Nov 2017, 11:23

Sometimes key mappings stop working. Idk how this happens, but it happens often.
Also, it seems that win+L cannot be mapped to anything since windows will always intercepts it.
In general it's frustrating that Windows is able to intercept my key mappings. For example if the taskmanager is the focused window, then all of my autohotkey bindings stop working :thumbdown: .

Here is my script. I'm using windows 10.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
Posts: 2833
Joined: 17 Oct 2015, 20:28

Re: Keys stop working often.

04 Nov 2017, 09:13

Win+L is protected by Windows, yes. I don't recall if someone has come around with workarounds, but there are few protected keybinds that AHK wouldn't be able to use.

As for why it doesn't work in Task Manager, it is probably because Task Manager was launched with admin or elevated privileges. I would not expect this to to stop you from using commands like WinActivate to change focus, but I would expect Send or Click commands on the Task Manager would fail. I think you should be able to bypass this by running your script as an administrator. However, be careful about changes to your script that can make it erratic, like long strings of characters that you Send. If your computer is a bit slow, it can result in opening menus unexpectedly and make changes to your system that otherwise wouldn't've been made if you didn't have admin rights. (Any damage a rogue AHK script does without admin rights shouldn't be too severe and readily undoable.)
User avatar
Posts: 3792
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Keys stop working often.

04 Nov 2017, 12:43

This might be useful re. Win+L:
Wanna override Win + L? - Scripts and Functions - AutoHotkey Community

The script might need to be run in Admin mode.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 5 guests