Code:
#singleinstance force
#notrayicon
Gui, Add, Edit, vtext limit256 x6 y10 w240 h90 , Enter the text you want to spam
Gui, Add, Edit, vfreq number x256 y40 w110 h20, Frequency (In sec)
Gui, Add, Button, x256 y70 w55 h30 , Start
Gui, Add, Button, x311 y70 w55 h30 , Stop
Gui, Add, DropDownList,vchannel x256 y10 w110 h20 r8, Channel||say|yell|guild|officer|emote|1|2|3|4|5|6|7|8|9
Gui, Show, x385 y490 h105 w371, BoomBox Chat by Professor Banana
UrlDownloadToFile, http://www.autohotkey.net/~uthallan/update.txt, chatupdate.txt
FileRead, update, chatupdate.txt
IfNotEqual, update, no updates
{
Msgbox, 4,, There is an update. Would you like to download it now? (Yes/No)
IfMsgBox Yes
run http://www.autohotkey.net/~uthallan/Downloads.html
}
Return
GuiClose:
ExitApp
buttonstart:
Gui, Submit, NoHide
if channel = Channel
{
msgbox Please specify a channel
return
}
if freq = Frequency (In sec)
{
msgbox Please specify a frequency
return
}
secfreq := freq * 1000
Gui, Color, FF0000
more := true
loop
{
if !more
break
controlsend,, /, World of Warcraft
sleep 75
controlsend,, %channel%, World of Warcraft
sleep 50
controlsend,, {space}, World of Warcraft
sleep 50
controlsend,, %text%, World of Warcraft
sleep 75
controlsend,, {return}, World of Warcraft
random, rand, 0, 500
finalfreq := secfreq + rand
sleep %finalfreq%
}
return
buttonstop:
more:= false
Gui, Color, default
return