added loop for double dig
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
from config_file import UserConfigs
|
from config_file import UserConfigs
|
||||||
import keyboard
|
import keyboard
|
||||||
import cv2 as cv
|
import cv2 as cv
|
||||||
@@ -14,7 +16,6 @@ def run():
|
|||||||
capture_config = UserConfigs()
|
capture_config = UserConfigs()
|
||||||
capture_window = WindowCapture(None, "screen_conf", capture_config)
|
capture_window = WindowCapture(None, "screen_conf", capture_config)
|
||||||
|
|
||||||
|
|
||||||
# initialize the StunVision class
|
# initialize the StunVision class
|
||||||
vision_stun = Vision()
|
vision_stun = Vision()
|
||||||
dig_overlay = DiggingOverlay(config)
|
dig_overlay = DiggingOverlay(config)
|
||||||
@@ -27,6 +28,18 @@ def run():
|
|||||||
plot_size = 45
|
plot_size = 45
|
||||||
DIG_TIME = 100
|
DIG_TIME = 100
|
||||||
|
|
||||||
|
runcounter = 2
|
||||||
|
|
||||||
|
if runcounter == 2:
|
||||||
|
double_dig = True
|
||||||
|
else:
|
||||||
|
double_dig = False
|
||||||
|
|
||||||
|
while runcounter != 0:
|
||||||
|
if double_dig and runcounter == 1:
|
||||||
|
dig_point(290, 100, 200)
|
||||||
|
cv.waitKey(2000)
|
||||||
|
runcounter = runcounter - 1
|
||||||
while True:
|
while True:
|
||||||
if keyboard.is_pressed('p') == True:
|
if keyboard.is_pressed('p') == True:
|
||||||
pause = True
|
pause = True
|
||||||
@@ -182,3 +195,4 @@ def run():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run()
|
run()
|
||||||
|
sys.exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user