If you are in peace mode and click on a hostile NPC, you should automatically dwaw your weapon and attack. I've never had a problem with targeting, except trying to click on running targets without pausing first.