Simple code:
Click and hold key "Home" to sends autoattack (bm2, bm3)
Auto Attack put on "1"
Code:#Include <Misc.au3> HotKeySet("{HOME}","start") HotKeySet("{END}","_exit") While 1 if _IsPressed("24") then Send("{1 down}") Sleep(1) EndIf WEnd Func _exit() Exit EndFunc While True WEnd