You will need to find a way to target the warlock. Assuming you are familiar with isboxer, one way to do that is to use the "Target Slot" variable keystroke. The other option is to make a macro in the helper section with /target name. In the key you make you can add as many actions as you want (well ... almost .... don't put 20 actions and expect to do them all in 1 push ...), you can have the AP sent to the mages (ATG or SLOT/Character as target), "Target Slot" or "/target name" macro and the PI key/macro sent to priest (again, ATG or SLOT/Character as target).

It will look something like this ---> http://prntscr.com/pmzmwu

NOTE1 : Ignore the key map where i have placed this key, you should have it under .... "Custom Hotkeys"
NOTE2 : I am not watching the forums too often , would suggest to post in isboxer forum or to jump on discord.