You must use the Botting Hub Launcher to run the official client from scratch, as it configures the client in fixed mode at a specific size that the AI bot was trained on. Launching the OSRS client manually in random sizes or configurations will cause the bot to malfunction. Also DO NOT minimize the game client while the script is running!
Also be sure your osrs client is set into fixed mode – classical layout as seen below: