Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Double tap vs single tap a key
#2
Macro Macro1816
Trigger I     Help - how to add the trigger to the macro
Code:
Copy      Help
int+ g_InsertKeyTime; int isDouble=GetTickCount-g_InsertKeyTime<=400; g_InsertKeyTime=GetTickCount

if isDouble
,out "double"
else
,out "single"

EDIT: There is a better version: Detecting double tap of keyboard triggers


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)