Hello,
trying to solve goal for Age of Conan. MMO.
U have to Select party man. (F1 - F5) then press assist to take his target.
I would like to have only one button.
Idea : I will press Fx button twice as pre-select. Then only press {f} when i wnat to asit my mate.
Code:
~F1::
~F2::
~F3::
~F4::
~F5::
if u_tankpress > 0 ; SetTimer already started, so we log the keypress instead.
{
u_tankpress += 1
return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
u_tankpress = 1
SetTimer, u_SpankAction, 300 ; Wait for more presses within a 500 millisecond window.
return
u_SpankAction:
if u_tankpress>1
u_tank={F1}
return
$f:: Send %u_tank%{f}
Problem is
red line. Would like to know how to save "Actual_Keypress" to u_tank variable.
possible solution is create 5 similar block of code with one line diferent but its ugly.
Thx a lot for any advice.