def click(t, useShift=False): keyboard = kbController() time.sleep(t) if (useShift): keyboard.press(Key.shift) time.sleep(0.1) pyautogui.click(button='left') time.sleep(0.3) keyboard.release(Key.shift) else: pyautogui.click(button='left')
def click(t, btn, useShift=False, doNotDoubleClick=False): keyboard = kbController() time.sleep(t) if (useShift): keyboard.press(Key.shift) time.sleep(0.1) pyautogui.click(button=btn) time.sleep(0.3) keyboard.release(Key.shift) else: doubleClick = random.randint(0, 3) pyautogui.click(button=btn)
def click(t, useShift=False): keyboard = kbController() time.sleep(t) if (useShift): keyboard.press(Key.shift) time.sleep(0.1) pyautogui.click(button='left') time.sleep(0.3) keyboard.release(Key.shift) else: doubleClick = random.randint(0, 3) pyautogui.click(button='left') if (doubleClick % 3 == 0): pyautogui.click(button='left')
def moveToCoord(x, y, tm, step, btn, dropping=False): keyboard = kbController() print("Coordinate #" + str(step + 1) + " x:" + str(x) + " y:" + str(y) + "run time: " + str(tm)) pyautogui.moveTo(x, y) if (dropping): time.sleep(0.5) print("pressing shift:") keyboard.press(Key.shift) time.sleep(0.1) pyautogui.click(button='left') pyautogui.click(button='left') keyboard.release(Key.shift) else: click(tm + delay, btn)
click_sys((805, 32), Button.left, 1) keyboard.press(Key.ctrl); keyboard.press('t'); keyboard.release('t'); keyboard.release(Key.ctrl) time.sleep(1) driver.switch_to.window(driver.window_handles[2]) driver.get('https://www.instagram.com/'+list_p[1]) time.sleep(2) WebDriverWait(driver, 20).until(expected_conditions.presence_of_element_located((By.XPATH, '/html/body/div[1]/section/main/div/header/section/ul/li[2]/a'))).click() time.sleep(2) # Driver OF ChromeBot driver = webdriver.Chrome(ChromeDriverManager().install()) # Fake Inputs of Keyboard and Mouse keyboard = kbController() mouse = Controller() # Get Time start_milliseconds = time.time() start_milliseconds -= 4000 # Loop Engine loop = True index_action = 0 hours_passed = 0 index_post = 1 index_loop = 0 # Data
def __init__(self): self.mouse = mouseController() self.keyboard = kbController()