As for the packet being sent to the server, the packet op-code is three, and it is send whenever the client loses or gains operating system focus. You can lose focus on the client without minimizing it. Most bots do not allow this packet to be sent, unless sent manually during anti-ban...