示例#1
0
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')
示例#2
0
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)
示例#3
0
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')
示例#4
0
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)
示例#5
0
	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
示例#6
0
 def __init__(self):
     self.mouse = mouseController()
     self.keyboard = kbController()