Instructions
Click the unit for which you want to disable auto-attack.
Press "H" or click "Hold Position" to tell your unit to remain in place. It will stay there until you tell it to perform another action.
Repeat the action every time want your character to stay in place. Once you instruct your character to move or perform another action, it will begin to auto-attack again. You need to hold your position every time.