Resolved RuneScape client becomes active window on mouse click

So I've just recently started to make my bots work properly with Spectre. I found when using a bot with Spectre that anytime the bot clicks something (whether it be interacting with, walking etc.) then the RuneScape client becomes the active window. So if I click off the RuneScape client into another window, as soon as the bot interacts with something it will become the active window which can be annoying especially when trying to type something in another window or anything. I'll include a video to make it easier to explain what I am talking about.