Created
June 7, 2021 21:10
-
-
Save connorslade/54f60d78e0315cf0bcbfb0769064d9ce to your computer and use it in GitHub Desktop.
This file contains 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
#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