I don't know if this is way too complicated or not, but I've been using a software for testing / scripting. You can pretty much use this perform simple tasks, such as auto hp / mp bot. You basically just have a while loop that searches aka. find (image recognition) in SIKULI, where you search for the HP + MP bar in your MapleStory client once that is found, click or send the hotkey where you have your potions / elixir.
You can read and find easy instructions on YouTube/Google how it works specifically, it is really easy to use. If you don't get the hang of it, I can help you out.
Good luck ^^,