Advertisement
perazite

Key cycle with cooldown

Jan 18th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RButton::keycycle("u","6")
  2.  
  3.  
  4. keycycle(key0,key1){ ;T=Time,K=KeyNum,C=Cooldown
  5.     static T:=0, K:=0, C:=3000
  6.     if (K=0) || (K=1 && (A_TickCount-T)>=C)
  7.     {
  8.         send % key%K%
  9.         T:=A_TickCount , K:=!K
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement