Browse Source

Update AlbionFisher.py

master
Unbewohnte 4 years ago committed by GitHub
parent
commit
ade4e1e9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      AlbionFisher.py

6
AlbionFisher.py

@ -9,11 +9,13 @@ import time
x1,y1 = 265,350 x1,y1 = 265,350
x2,y2 = 408,495 x2,y2 = 408,495
x,y = 523,445
meanvalue = 4.8 #You need to know the optimal mean value to actually make it work meanvalue = 4.8 #You need to know the optimal mean value to actually make it work
def zakid(): def zakid():
pg.moveTo(x = 523,y = 445, duration = 0.5) pg.moveTo(x , y, duration = 0.5)
pg.mouseDown() pg.mouseDown()
time.sleep(1) time.sleep(1)
pg.mouseUp() pg.mouseUp()
@ -44,7 +46,7 @@ while True:
print('mean == 0, ending the programm') print('mean == 0, ending the programm')
break break
if poplavok_place_array_mean >= float(meanvalue2) and poplavok_place_array_mean != 0: if poplavok_place_array_mean >= float(meanvalue) and poplavok_place_array_mean != 0:
time.sleep(0.1) time.sleep(0.1)
pg.click(clicks = 2) pg.click(clicks = 2)
arrayEND = True arrayEND = True

Loading…
Cancel
Save