Wokzy / blum-bot

Blum autoclicker on python
54 stars 18 forks source link

Replay the game? #25

Closed hhjoo closed 1 day ago

hhjoo commented 2 days ago

Play just once not clicking on play again like i need to scroll down to see the dialog of play again how I'll fix it?

hhjoo commented 2 days ago

Using win 22 vps

SomeAkther2003 commented 2 days ago

Adding the code below will solve the scroll problem. You have to place them in the right place

import pyautogui

def scroll_to_bottom(): """Scroll to the bottom of the screen""" pyautogui.scroll(-10000)

Scroll down before clicking the play button

            scroll_to_bottom()
            time.sleep(1)  # Allow some time for the scrolling to complete
            mouse.move(x, y, absolute=True)
            mouse.click(button='left')
            wait_running_game(camera, timeout=5.5)
Wokzy commented 2 days ago

Better using mouse.wheel(-1000), it will be much faster, than pyautogui.