Skip to content

Instantly share code, notes, and snippets.

@connorslade
Created June 7, 2021 21:10
Show Gist options
  • Save connorslade/54f60d78e0315cf0bcbfb0769064d9ce to your computer and use it in GitHub Desktop.
Save connorslade/54f60d78e0315cf0bcbfb0769064d9ce to your computer and use it in GitHub Desktop.
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
FileRead, itemString, xp.txt
if ErrorLevel
{
MsgBox, Error Reading File
Exit, 1
}
items := StrSplit(itemString, " ")
i := 1
Sleep, 5000
#Persistent
SetTimer, sendMessage, 60000
Return
sendMessage:
Send, % items[i]
Send, {enter}
i++
if (i > items.MaxIndex()) {
i = 1
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment