DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: double keypress for hotkey  (Read 6,171 times)

matesko

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 8
double keypress for hotkey
« on: March 04, 2014, 06:47 PM »
It would be nice to have an option for double (or even triple) keypress for hotkey to start farr. For example double "click" on shift or Ctrl or Alt or something similar.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: double keypress for hotkey
« Reply #1 on: March 04, 2014, 11:15 PM »
Do you really want to spend as much as three keyboard presses each time you load FARR? I'd say it is useful enough to deserve a one press hotkey!  ;D But if you still want it a short Autohotkey script can be used to launch FARR with such custom hotkeys.

Doubletap:
Code
F4::
if (A_TimeSincePriorHotkey < 500) and (A_PriorHotkey == A_ThisHotkey)
 send {pause}   ;the command that launches FARR
return
Tripletap:
Code
F5::
if (A_TimeSincePriorHotkey < 500) and (A_PriorHotkey == A_ThisHotkey)
	 if triple = 1
		send {pause} ;the command that launches FARR
	 else
	  triple = 1
else 
 triple = 0
return

If you want to use the Control key alone as a tripletap hotkey we better prevent holding down of the button for a longer time from triggering a lot of open and close actions in FARR. This seems to work.
Code
Control::
if (A_TimeSincePriorHotkey > 10) and (A_TimeSincePriorHotkey < 500) and (A_PriorHotkey == A_ThisHotkey)
	 if triple = 1
		send {pause} ;the command that launches FARR
	 else
	  triple = 1
else 
 triple = 0
return

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: double keypress for hotkey
« Reply #2 on: March 04, 2014, 11:48 PM »
IIRC, when bugging mouser about this type of functionality, I think he suggested checking out TapTap Hotkey Extender -- at the time of trial it worked (but it didn't survive across multiple machine transitions, so I haven't had much experience with it recently).

matesko

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 8
Re: double keypress for hotkey
« Reply #3 on: March 07, 2014, 07:31 AM »
This was fast. Thanks! That is all I need  :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=37453.0