Here's a basic example using Python. This example assumes you're using pyautogui for a game that you play on a web browser:

The developers frequently run "ban waves." If their server-side logs detect impossible movement speeds or repetitive packet patterns, your account can be permanently disabled.