Skip to content

Instantly share code, notes, and snippets.

@1337cookie
Created August 9, 2020 16:14
Show Gist options
  • Save 1337cookie/34ef21f6e7e3277fb83d9d5c2f2038fb to your computer and use it in GitHub Desktop.
Save 1337cookie/34ef21f6e7e3277fb83d9d5c2f2038fb to your computer and use it in GitHub Desktop.
AHK script for writing documents to https://www.twitch.tv/agent_random
;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