Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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).
- SetTitleMatchMode, 2
- #SingleInstance Force
- IfWinExist %wintitle%
- {
- loop
- {
- Controlsend,,{F2}, %wintitle% ; <-- this is the proper format, chane F2 to whatever DPS key you want.
- RandomSleep(686,964) ; change the sleep variables to whatever you want- its in MS.
- }
- }
- Return
- ; Always keep a command to pause AHK
- F5::Pause
- ; Generally a good idea to keep a panic button
- F8::ExitApp
- RandomSleep(min,max)
- {
- Random, random, %min%, %max%
- Sleep %random%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement