-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
IP_LIST.txt | ||
surveybrowser.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import pyautogui as pag | ||
import pydirectinput | ||
pag.FAILSAFE = False | ||
import time | ||
|
||
|
||
# win = pyautogui.getWindowsWithTitle("WhatsApp") | ||
# if win: | ||
# kaltura = win[1] if len(win) > 1 else win[0] | ||
# if kaltura.isMinimized: | ||
# pyautogui.click(kaltura.left + 10, kaltura.top + 10) | ||
# pyautogui.click(kaltura.left + 10, kaltura.top + 10) | ||
|
||
while True: | ||
pag.moveTo(2511,1200) | ||
time.sleep(2) | ||
Kaltura_windows = pag.getWindowsWithTitle('Kaltura') | ||
|
||
# kaltura = next((win for win in Kaltura_windows), None) | ||
|
||
Kaltura_windows[1].restore() | ||
while True: | ||
try: | ||
Kaltura_windows[1].activate() | ||
break | ||
except: | ||
print("retrying") | ||
time.sleep(0.3) | ||
print(".") | ||
time.sleep(0.3) | ||
print(".") | ||
time.sleep(0.3) | ||
print(".") | ||
|
||
time.sleep(3) | ||
# pydirectinput.click(2511,1333) | ||
pydirectinput.moveTo(2511,1333) | ||
time.sleep(0.5) | ||
pydirectinput.click() | ||
# pag.moveTo(2511,1333) | ||
# time.sleep(2) | ||
# # pag.mouseUp() | ||
# # pag.mouseDown() | ||
# pag.click() | ||
# print(Kaltura_windows) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters