-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtinder_controller.py
More file actions
44 lines (36 loc) · 872 Bytes
/
tinder_controller.py
File metadata and controls
44 lines (36 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import pyautogui
def like():
pyautogui.keyUp('right')
print("like")
def dislike():
pyautogui.keyUp('left')
print("dislike")
def superlike():
pyautogui.press('enter')
print("superlike")
def next_image():
pyautogui.press('space')
print("next image")
def open_profile():
pyautogui.press('up')
print("open profile")
def close_profile():
pyautogui.press('down')
print("close profile")
def scroll_up(profileStatus):
if profileStatus == 0:
openProfile()
profileStatus = 1
pyautogui.scroll(100)
print("scroll up")
return profileStatus
def scroll_down(profileStatus):
if profileStatus == 0:
openProfile()
profileStatus = 1
pyautogui.scroll(-100)
print("scroll down")
return profileStatus
def close_window():
print("close window")
pyautogui.press('esc')