ok seems pretty easy but this is all basically theory as i can't test it.
---------------------------------------------------------------
while 1=1
//click first open program
MousePos 179, 849 //can be found using "control + m" in ACTool
leftclick
delay 3000 //delay is probably way too long for u, depends on pc specs
loop
//do all actions for screen 1
keydown {f1}, 10 sec
//this is assuming ur ingame buff macro is set to f1 - replace f1 with desired number
//10 second delay so that all buffs are hopefully used, may need to increase this
end
//click second open program
MousePos 347, 848 //can be found using "control + m" in ACTool
leftclick
delay 3000 //again reduce delay as appropriate
loop
//do all actions for screen 2
loop 7
keydown {f1}, 1 sec
delay 3 sec
//this will press f1 and then wait 3 seconds - 7 times to remove all buffs
//replace f1 as desired with skill thaw slot
end
end
end
-------------------------------------------------------------------