how are runescape bots detected?
The way Jagex detects bots, for the most part, is by reading mouse movements and other behavioral patterns of a character. More primitive bots get banned within minutes of running. Since most of the time, multiple people are using the same bot, Jagex is already aware of that bot's pattern.