Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. wintitle = is1 (Ctrl+Alt+1) Implicationz-Frostmourne - Always Sunny ; use AHK to get the exact name of the window it will be broadcasting to (then use ISB to send the keypresses).
  2. SetTitleMatchMode, 2
  3. #SingleInstance Force
  4.  
  5. IfWinExist %wintitle%
  6. {
  7. loop
  8. {
  9. Controlsend,,{F2}, %wintitle% ; <-- this is the proper format, chane F2 to whatever DPS key you want.
  10. RandomSleep(686,964) ; change the sleep variables to whatever you want- its in MS.
  11. }
  12. }
  13. Return
  14.  
  15. ; Always keep a command to pause AHK
  16. F5::Pause
  17.  
  18.  
  19. ; Generally a good idea to keep a panic button
  20. F8::ExitApp
  21.  
  22.  
  23. RandomSleep(min,max)
  24. {
  25. Random, random, %min%, %max%
  26. Sleep %random%
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement