Poblem with my pentab

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
yansaan
Posts: 1
Joined: 19 Jan 2022, 06:24

Poblem with my pentab

Post by yansaan » 19 Jan 2022, 06:30

My pentab (huion) have poblem

Script

Code: Select all

 *LButton::
    resetRotate := 0
    resetZoom := 0
    Send {LButton Down}
    KeyWait, LButton, d
    KeyWait, LButton
    Send {LButton Up}
  return
When my pen press, KeyWait, LButton, d stuck until i click my left mouse. But KeyWait, LButton, d disabled, my pen cannot press hold

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Poblem with my pentab

Post by mikeyww » 19 Jan 2022, 07:24

Untested with the pen. It's different, I admit, in terms of modifiers, but something to try.

Code: Select all

~*LButton::
resetRotate := resetZoom := 0
SoundBeep, 1500
; KeyWait, LButton
SoundBeep, 1000
Return
It's possible that AHK cannot detect the button release, or that you may need to explore further how to do that. You could have a look at the KeyHistory and scan codes.

Post Reply

Return to “Ask for Help (v1)”