Help needed regarding LockUp script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
astral8wiz
Posts: 4
Joined: 10 Mar 2019, 01:22

Help needed regarding LockUp script

Post by astral8wiz » 14 Mar 2019, 03:21

I found a useful screen lockup script at https://github.com/sgilroy/AutoBodyHot/blob/master/SoftDesktopLock/LockUP.ahk. The post was made way back during 2012.

It successfully blocks all keyboard and mouse input in locked state. However, upon pressing "Escape" key, the password entry dialog opens during which time anyone can press Alt+Tab to switch to any of the windows that were open before locking screen. This access to windows through Alt+Tab key during password dialog is a security issue and should not be allowed. Any solutions?
Last edited by astral8wiz on 14 Mar 2019, 03:49, edited 2 times in total.

User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Help needed regarding LockUp script

Post by SL5 » 14 Mar 2019, 03:31

what about:

Code: Select all

!tab::
; do nothing
return
Hotkey, $!Tab, off
Hotkey, $!Tab, on

astral8wiz
Posts: 4
Joined: 10 Mar 2019, 01:22

Re: Help needed regarding LockUp script

Post by astral8wiz » 14 Mar 2019, 03:46

Adding your code to the end of original script fixed this security issue. Thanks. :thumbup:

Do you have any further suggestions/comments on this script?

Post Reply

Return to “Ask for Help (v1)”