so i took a look at ur program and i like it
i tried to add a buff method that took a 2d array of the relevant cast times and keys for the buffs, but it simply doesn't work, occasionally u get 1 spell working but that's all
Global Const $buffSequence[6][2] = [[Chr(55),2000],[Chr(48),2000],[Chr(57),2000],[Chr(112),1000],[Chr(56),1000],[Chr(172),500]];
Func Rebuff()
;pre-curser, buff sequence is a >=2d array containing keys and integers respectively
ToolTip("begin buffing",0,0);
$Buffing=True;
Sleep(1000);
for $i=0 To UBound($buffSequence)-1
Send($buffSequence[$i][0]);
ToolTip($buffSequence[$i][0]);
;ConsoleWrite($buffSequence[$i][0]);
;ConsoleWrite("sent");
Sleep($buffSequence[$i][1]);
;ConsoleWrite($buffSequence[$i][1]+" waiting");
;ConsoleWrite("waiting");
Next
ToolTip("end buffing",0,0);
$Buffing=False;
EndFunc
on a further note this is comfirmed working on us server as of 24/03/2013 (no gg patched)
edit: i set a hotkey to test this temporarily so it's deffo called incase ur wondering :P
edit2: Chr(172)=='¬' which cycles thru mobs on british and perhaps other keyboards