-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
38 lines (34 loc) · 1.03 KB
/
test.py
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
import pyautogui
import sys
#cd "C:\Skripts - Python\pyautoguiBC14"
#while True:
# last = pyautogui.locateCenterOnScreen("lastschrifteinzugv2.png", confidence=0.8)
# last
# print (last)
#confirmbutton = pyautogui.confirm(text='Continue?', title='Continue?', buttons=["OK", "CANCEL"]) # Knopf zum bestätigen ob weiter? OK/CANCEL
#while 1:
# if confirmbutton == "OK":
# pass
# elif confirmbutton == "CANCEL":
# print ("Sadge")
# break
# x = 0
# x = x + 1
# print (x)
def cbutton():
confirmbutton = pyautogui.confirm(text='Continue?', title='Continue?', buttons=["OK", "CANCEL"]) # Knopf zum bestätigen ob weiter? OK/CANCEL
if confirmbutton == "OK":
pass
elif confirmbutton == "CANCEL":
print ("Sadge")
return
#break
x = 0
x = x + 1
print (x)
cbutton()
#ja = pyautogui.locateCenterOnScreen('jav2.png', confidence=0.99)
#jaxy = (ja[0],ja[1])
#print (jaxy)
#jaxy = (ja[0],ja[1])
#print (jaxy)