Code:
$appname = "World of Warcraft"
$bufftext1 = "Might"
$bufftext2 = "Light"
$bufftext3 = "Wisdom"
$bufftext4 = "Salvation"
$bufftext5 = "Sanctuary"
func runbuff()
$read1 = GUICtrlRead($buff1)
$read2 = GUICtrlRead($buff2)
$read3 = GUICtrlRead($buff3)
$read4 = GUICtrlRead($buff4)
$read5 = GUICtrlRead($buff5)
ControlSend($appname,"","","{F1}")
ControlSend($appname,"","","/cast Blessing of "&$read1&"{ENTER}")
ControlSend($appname,"","","{F2}")
sleep(1200)
ControlSend($appname,"","","/cast Blessing of "&$read2&"{ENTER}")
ControlSend($appname,"","","{F3}")
sleep(1200)
ControlSend($appname,"","","/cast Blessing of "&$read3&"{ENTER}")
ControlSend($appname,"","","{F4}")
sleep(1200)
ControlSend($appname,"","","/cast Blessing of "&$read4&"{ENTER}")
ControlSend($appname,"","","{F5}")
sleep(1200)
ControlSend($appname,"","","/cast Blessing of "&$read5&"{ENTER}")
EndFunc
#include <GUIConstants.au3>
GUICreate("AutoBless", 210, 200)
GUISetState (@SW_SHOW)
$label1 = GUICtrlCreateLabel("Yourself",5,7)
$buff1 = GUICtrlCreateCombo($bufftext1,100,5,100)
GUICtrlSetData(-1,$bufftext2)
GUICtrlSetData(-1,$bufftext3)
GUICtrlSetData(-1,$bufftext4)
GUICtrlSetData(-1,$bufftext5)
$label2 = GUICtrlCreateLabel("Group member 2",5,37)
$buff2 = GUICtrlCreateCombo($bufftext1,100,35,100)
GUICtrlSetData(-1,$bufftext2)
GUICtrlSetData(-1,$bufftext3)
GUICtrlSetData(-1,$bufftext4)
GUICtrlSetData(-1,$bufftext5)
$label3 = GUICtrlCreateLabel("Group member 3",5,67)
$buff3 = GUICtrlCreateCombo($bufftext1,100,65,100)
GUICtrlSetData(-1,$bufftext2)
GUICtrlSetData(-1,$bufftext3)
GUICtrlSetData(-1,$bufftext4)
GUICtrlSetData(-1,$bufftext5)
$label4 = GUICtrlCreateLabel("Group member 4",5,97)
$buff4 = GUICtrlCreateCombo($bufftext1,100,95,100)
GUICtrlSetData(-1,$bufftext2)
GUICtrlSetData(-1,$bufftext3)
GUICtrlSetData(-1,$bufftext4)
GUICtrlSetData(-1,$bufftext5)
$label5 = GUICtrlCreateLabel("Group member 5",5,127)
$buff5 = GUICtrlCreateCombo($bufftext1,100,125,100)
GUICtrlSetData(-1,$bufftext2)
GUICtrlSetData(-1,$bufftext3)
GUICtrlSetData(-1,$bufftext4)
GUICtrlSetData(-1,$bufftext5)
$launch = GUICtrlCreateButton(" Buff Party! ",40,155)
$close = GUICtrlCreateButton(" Close Script ",110,155)
while 1
$msg = GUIGetMsg()
Select
Case $msg = $close
WinClose("AutoBless")
Case $msg = $launch
if WinExists($appname) Then
runbuff()
Else
MsgBox(64,"Error",$appname&" is not running! please run it then try again")
EndIf
EndSelect
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Still a work in progress but i think its alright