Code: Select all
Lbutton::
if (a_timesincepriorhotkey != -1 && a_timesincepriorhotkey<500)
cnt += 1
else if (a_timesincepriorhotkey > 700)
cnt := 0
if (cnt == 1)
Send, o
else
Click ; makes it so that the double click only inputs "o" and not LMB and "o"
Return
This script presses "o" after a double click, but the weird problem with it is that the LMB or "o" cannot be held down.
Pressing LMB starts a normal attack, when LMB is held for 0,5 sec. it does a heavy attack, heavy attacks cannot be morphed
Pressing LMB for a normal attack and then pressing "o" morphs the normal attack to an alternate version of it
Pressing LMB for a normal attack and then holding down "o" for 0,5 sec. does alternate heavy attack
With this script holding down a key only presses it and I don't know why.