AHK Script help

Hi guys im new to AHK, i would like to know if anyone can post me a script for WoW that rebinds E to mouse4 and clicks every 0.5 sec for example… just want a simple script, regards!