StarCraft 2 1 button attack click macro

I hate the fact that you have to right click to move and A left click to attack click so I wrote a simple macro to attack click with a mouse thumb button.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force

#IFWinActive, StarCraft II
{
xbutton2::
+xbutton2::
send {a}
sleep 50
click
return
}