Ctrl Alt Modifier does NOT work if the hotkey sends Delete

Get help with using AutoHotkey and its commands and hotkeys
jwinfl
Posts: 41
Joined: 16 Aug 2017, 12:37

Ctrl Alt Modifier does NOT work if the hotkey sends Delete

28 Feb 2020, 09:02

Ctrl Alt Modifier does NOT work if the hotkey sends Delete

The following does NOT send {Del} to the Active Window.

^! (followed by any key I tried) ::Sendinput {Del}

For example...

^!Numpad4::Sendinput {Del}

or

^!z::Sendinput {Del}

Windows 10 appears to ignore the Key after ^! completely and executes ^!{Del} which brings up the "lock, switch users, signout, taskmanager screen"

Any solution would be appreciated.
User avatar
boiler
Posts: 6160
Joined: 21 Dec 2014, 02:44

Re: Ctrl Alt Modifier does NOT work if the hotkey sends Delete

28 Feb 2020, 13:25

This waits for you to release the Ctrl and Alt keys before sending Del so it avoids that problem:

Code: Select all

^!Numpad4::
KeyWait, Ctrl
KeyWait, Alt
Sendinput {Del}
return

Return to “Ask For Help”

Who is online

Users browsing this forum: Automator, Chunjee, Google [Bot], mikeyww, swagfag and 94 guests