xegaJ

#Basic Random Interval Clicker

Apr 12th, 2017
1,795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("Konduit Oldschool") ; This piece of code makes sure that the AHK script only works in a specific program/game window, this comes in handy if you don't feel like suspending/pausing the AHK script whenever you want to use the keys in another window such as Chrome/Netflix. Change it to "OSBuddy"/"OSBuddy Pro"/"RuneLoader" if you're using any 3rd party client.
  2.  
  3. #MaxThreadsPerHotkey,2
  4. NumpadEnter::
  5. t:=!t2
  6. While (t){
  7.     Click
  8.     Random, rand, 423, 780
  9.     Sleep % rand
  10.     Click up
  11. }
  12. return
  13.  
  14. Numpad3::Reload
  15.  
  16. Numpad2::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment