Posted by member 212670 on 2006-10-18 05:23:38 link

Here's a really crude way you could do it:
*NetLoadModule typein-991019
*NetLoadModule mzscript-1.0-rc2

PressDelay 0.25 ;how fast the key needs to be double clicked (ex: 0.25 is 1/4 of a second)

*Hotkey .None s !keypress ;key to be double clicked (ex: s)

*Script bang !keypress
*Script exec !varset timestamp1 %{second}.%{milli}
*Script exec !ifExist [timestamp2] [!action][!varset timestamp2 %{second}.%{milli}]
*Script exec !TypeIn "^_s^_" ;needs to match hotkey's key. remove/add "^_" if problems - see typein readme
*Script ~bang

*Script bang !action
*Script exec !If ["%#%{timestamp1}-%{timestamp2}%#" < "$PressDelay$"] [!alert "double click"] ;action for double click
*Script exec !varremove timestamp2
*Script ~bang

I think the best solution would come from outside of Litestep, though, unless someone knows a better way to capture key presses.