i found a way to make my work easier but i dont get it how to program it.
That's what i got but its doesnt work and isn't finished.
Code: Select all
; if i press w than r in a time of 5 sec than i spam w else nothing
cd := 5 ; 5 sec
pressed := true ; when i press its get "pressed"
KeyWait, w, D ; wait for pressing w
if (pressed == true) { ; count to 5
cd -= 1
sleep, 1000
if (cd == 0) { ; if 0 (5 sec) waited pressed get false and we start again
Msgbox, 5 seconds over
pressed := false
}
}
If i press W and than R in a period of 5 sec it's (the program) immediately have to spam W for some seconds.
And if i press W and after 5 seconds R the program should do nothing.
if someone would help me i would be verrrrryyyyyy happpppppyyy