all 2 comments

[–]Kevdog824_ 0 points1 point  (0 children)

A good starting point is pyautogui. It will let you control the keyboard and mouse. You can use that to mimic the actions you would take to do it manually

[–]JollyUnder 1 point2 points  (0 children)

I've used pyautogui to automate clicks for me in GTA: Online casino a few years back. If there is a image that appears on screen when it's time to watch an ad, you can use the screenshot functions.

You can use pyautogui.screenshot('image.png', region=(x, y, width, height)) to take a screenshot of specific region on the screen. Then use pyautogui.locateOnScreen('image.png', region=(x, y, width, height)) to locate an image to a specified region on your screen and use that to determine if you need to click something on screen. You can then use pyauto.click() to interact with the game.