Can't preserve hotkeys default behavior with tilde prefix

Get help with using AutoHotkey and its commands and hotkeys
XWX
Posts: 1
Joined: 16 Mar 2019, 22:00

Can't preserve hotkeys default behavior with tilde prefix

17 Mar 2019, 08:19

.
Last edited by XWX on 19 Mar 2019, 13:43, edited 1 time in total.
User avatar
Scr1pter
Posts: 1066
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Can't preserve hotkeys default behavior with tilde prefix

17 Mar 2019, 08:32

Hi and welcome,

This seems to be normal.
When you press and hold the left mouse button,
key inputs don't get accepted.
(At least it has just been the case for me)

What you could do is this:

Code: Select all

$lbutton:: ; $ = Prevent hotkey from triggering itself
Send {lbutton}
while GetKeyState("lbutton", "P")
{
  Send k
  Sleep, 20
 }
return
It will only make 1 click, though, but it spams k.

Cheers!
.Please use code tags when posting code!
Image
Keyboard: Logitech G15 FE - Mice: Logitech G9 FE, G502 FE, G602 - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.29.00

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Gibbons, Google [Bot], letacio, unconnu and 43 guests