window snapping doesn't work with modifiers

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
executer
Posts: 9
Joined: 03 Jul 2023, 09:58
Contact:

window snapping doesn't work with modifiers

Post by executer » 11 Jul 2023, 12:49

[Moderator's note: Topic moved from Bug Reports.]

Code: Select all

h:: Send "#{Left}"
the following code doesn't work

Code: Select all

#!h:: Send "#{Left}"

ludamo
Posts: 44
Joined: 25 Mar 2015, 02:21

Re: window snapping doesn't work with modifiers

Post by ludamo » 12 Jul 2023, 02:03

I guess holding down Win & Alt keys which are heavily used by the system can be a bit tricky. This code seems to work.

Code: Select all

#!h:: {
KeyWait "LWin"
KeyWait "Alt"
KeyWait "h"
Send "#{Left}"
}

executer
Posts: 9
Joined: 03 Jul 2023, 09:58
Contact:

Re: window snapping doesn't work with modifiers

Post by executer » 21 Jul 2023, 03:31

it works! not as smooth as i would have hoped but works and is consistent. thank you

Post Reply

Return to “Ask for Help (v2)”