Is there a way I can set up my ranger so she will use her bow while the enemies are at range, then switch to her longsword automatically when they come into close range? At the moment I'm just shooting at close range or not bothering with my bow at all, which isn't very rangerish

, because I can't be bothered to keep changing weapons using the inventory screen.