I am creating a bot that automatically chooses what to cast based on a priority queue. It's like PQR, but it's a 'semi-automatic' bot, meaning: it requires user input. Basically it is a macro enabler, but the logic is processed by the bot.
The problem I am running into is each button press queues up LUA for the game to process every time. This means when I spam buttons the queue gets backed up and the game becomes unresponsive until all the calls either get processed or expire.
How can I prevent this from happening?
I am using iHook.