Code: Select all
!b::Click
But dragging doesn't work. Any help?
I tried this code
Code: Select all
!b::
SendInput, {Click down}
SendInput, {Alt up}
KeyWait, b
return
!b up::
SendInput, {Click up}
return
I check it here http://en.key-test.ru/
Code: Select all
!b::Click
Code: Select all
!b::
SendInput, {Click down}
SendInput, {Alt up}
KeyWait, b
return
!b up::
SendInput, {Click up}
return
Ctrl gets sent because it is the default #MenuMaskKey, used in AHK to prevent Alt from activating the active window's menu bar at unexpected times.
Code: Select all
#MenuMaskKey vk07 ; vk07 is unassigned.
!b::
; [...]
Ctrl is used historically in AHK as the menumaskkey for Alt and Win keys - that's a fact. But it can have side-effects.https://www.autohotkey.com/docs/commands/_MenuMaskKey.htm#Remarks wrote:The mask key is sent automatically to prevent the Start menu or the active window's menu bar from activating at unexpected times.