Advertisement
Guest User

osuKeyReplacer

a guest
Oct 1st, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. active:=0
  3.  
  4. #if (WinActive("ahk_exe osu!.exe"))
  5.  
  6. F2::
  7. active:=!active
  8. return
  9.  
  10. #if (WinActive("ahk_exe osu!.exe") && active)
  11.  
  12. x::
  13. SendEvent,{LButton down}
  14. KeyWait,x
  15. SendEvent,{LButton up}
  16. return
  17.  
  18. LButton::
  19. SendEvent,{x down}
  20. KeyWait,LButton
  21. SendEvent,{x up}
  22. return
  23.  
  24. z::
  25. SendEvent,{RButton down}
  26. KeyWait,z
  27. SendEvent,{RButton up}
  28. return
  29.  
  30. RButton::
  31. SendEvent,{z down}
  32. KeyWait,RButton
  33. SendEvent,{x up}
  34. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement