Guest User

Untitled

a guest
Apr 28th, 2024
1,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. keybind := "CapsLock" ; edit this to change your desired hotkey
  2. slideInput := "^e" ; edit this to change the actual input it spams; set to Ctrl-E by default as that's the default bind for crouch/slide + melee
  3. repeatDelay := 100 ; edit this to change the default delay (in ms) between repeated slide attack inputs (use PgUp and PgDn while in-game to edit the delay on the fly for testing, a tooltip will pop up showing you the current value)
  4.  
  5. SetKeyDelay, 0
  6.  
  7. #IfWinActive Warframe
  8.     Hotkey, IfWinActive, Warframe
  9.     Hotkey, %keybind%, SAMacro
  10.     *PgUp::ModDelay(10)
  11.     *PgDn::ModDelay(-10)
  12. #IfWinActive
  13.  
  14. SAMacro() {
  15.     global
  16.     While GetKeyState(keybind, "P") {
  17.         Send, %slideInput%
  18.         Sleep, repeatDelay
  19.     }
  20. }
  21.  
  22. ModDelay(amount) {
  23.     global repeatDelay
  24.     repeatDelay += amount
  25.     ToolTip, %repeatDelay%
  26.     SetTimer, RemoveToolTip, -1000
  27. }
  28.  
  29. RemoveToolTip() {
  30.     ToolTip
  31. }
Advertisement
Add Comment
Please, Sign In to add comment