Created
August 9, 2020 16:14
-
-
Save 1337cookie/34ef21f6e7e3277fb83d9d5c2f2038fb to your computer and use it in GitHub Desktop.
AHK script for writing documents to https://www.twitch.tv/agent_random
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Stop start isnt working stop script manually. | |
#NoEnv | |
#Persistent | |
global KeepRunning := False | |
sendData(){ | |
Loop, read, file.txt | |
{ | |
if (KeepRunning = true){ | |
Send {Text}!t %A_LoopReadLine% | |
Send {Enter} | |
Send {Text}!e | |
Send {Enter} | |
}else{ | |
break | |
} | |
} | |
} | |
Loop{ | |
if(KeepRunning = True){ | |
sendData() | |
} | |
} | |
F7:: ;Set your hotkey | |
if(KeepRunning = False){ | |
KeepRunning := True | |
Tooltip, Script is turned on, 0, 0 | |
return | |
} | |
Else{ | |
KeepRunning := False | |
Tooltip, Script is turned off, 0, 0 | |
return | |
} | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment