Normal
Hi bloasfist,I solved it with an Autohotkey script, see AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText:[code]LButton::if winc_presses > 0 ; SetTimer already started, so we log the keypress instead.{ winc_presses += 1 return}; Otherwise, this is the first press of a new series. Set count to 1 and start; the timer:winc_presses = 1SetTimer, KeyWinC, 200 ; Wait for more presses within a 200 millisecond window.returnKeyWinC:SetTimer, KeyWinC, offif winc_presses = 1 ; The key was pressed once.{ Send, {LButton}}else if winc_presses = >1 ; The key was pressed twice.{ Send, {RButton}}; Regardless of which action above was triggered, reset the count to; prepare for the next series of presses:winc_presses = 0return[/code]Cheers,jayrock
Hi bloasfist,
I solved it with an Autohotkey script, see AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText:
[code]
LButton::
if winc_presses > 0 ; SetTimer already started, so we log the keypress instead.
{
winc_presses += 1
return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
winc_presses = 1
SetTimer, KeyWinC, 200 ; Wait for more presses within a 200 millisecond window.
KeyWinC:
SetTimer, KeyWinC, off
if winc_presses = 1 ; The key was pressed once.
Send, {LButton}
else if winc_presses = >1 ; The key was pressed twice.
Send, {RButton}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
winc_presses = 0
[/code]
Cheers,
jayrock