Already posted, use the search button.
I apologize, the tut was for rPE auto def.
[Only registered and activated users can see links. Click Here To Register...]
Its simple in autoIT.
Just have it send the hotkey you've assigned defense to at a fixed interval, both basic calls.