-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdigiSign.py
More file actions
38 lines (31 loc) · 1.09 KB
/
Copy pathdigiSign.py
File metadata and controls
38 lines (31 loc) · 1.09 KB
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
import pyautogui
import time
def automate_task(numbers, seconds):
# Wait for x seconds
time.sleep(seconds)
# Move the mouse to a specific position
pyautogui.moveTo(1049, 557, duration=1) # Move inside PIN area
# Click at the current mouse position
pyautogui.click()
# Loop through the numbers and press each one
for number in numbers:
pyautogui.press(number)
# Move to OK
pyautogui.moveTo(1057, 637)
# Press OK
pyautogui.click()
# Move to OK for Wrong Password
pyautogui.moveTo(1033, 590, duration=1)
# Click OK for wrong password
pyautogui.click()
# List of numbers to press
numbers = ['3', '7', '8', '8', '0', '9']
# Press Start Process
pyautogui.moveTo(1049, 730, duration=1) # Moves to (100, 100) in 1 second
# Click at the current mouse position
pyautogui.click()
seconds = 2 #Ξεκίνα με 3 δευτερόλεπτα και κάθε 200 έντυπα αύξανε τα δευτερόλεπτα αναμονής κατά 1
for k in range(1):
seconds+=1
for i in range(85):
automate_task(numbers, seconds)