Advertisement
iamabear

Payday 2 Auto Interact Script

Feb 6th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Payday 2 EZinteract. V0.1 (02.02.2014)
  2. ; Programmed by Derathor. Enjoy :)
  3.  
  4.  
  5. ~4:: ;4 is the defined hotkey. ~ makes it so that the native key function also works.(is not blocked)
  6.  
  7. Send, {f down} ;hold down the f button.
  8.  
  9. stoprunning= ;check if stoprunning is triggered. (f pressed)
  10.  
  11.  
  12. KeyWait, 4 ;wait for release of this hotkey before Loop starts...
  13.  
  14. Loop { ;infinite loop.
  15. KeyWait, 4, D T.019 ;wait for key 4 to be pressed, or time out, setting the error level = 1.
  16. if (stoprunning || !errorlevel) { ; "||" is logical OR.
  17. Send {f up} ; release the f key.
  18. break ; break the loop.
  19. }
  20. }
  21. return
  22.  
  23. ~f::stoprunning=1 ;when f is pressed, stop the loop. Also sends native f key when pressed in-game.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement