added equip ok button check
This commit is contained in:
@@ -8,6 +8,7 @@ from hsvfilter import HsvFilter
|
||||
from config_file import UserConfigs
|
||||
import pydirectinput
|
||||
import keyboard
|
||||
from utils import check_for_ok_button
|
||||
|
||||
EMITTER_MAIN = "main"
|
||||
EMITTER_MUSH = "mushroom"
|
||||
@@ -126,11 +127,6 @@ def run():
|
||||
for point in points:
|
||||
click_point(config, points[0][0], points[0][1])
|
||||
|
||||
fixed_merge_pos_1 = [point[0] + 70, point[1]]
|
||||
fixed_merge_pos_2 = [point[0] + 140, point[1]]
|
||||
fixed_merge_pos_3 = [point[0] + 70, point[1] + 70]
|
||||
fixed_merge_pos_4 = [point[0] + 140, point[1] + 70]
|
||||
|
||||
if keyboard.is_pressed('p') == True or pause == True:
|
||||
pause = True
|
||||
break
|
||||
@@ -138,6 +134,9 @@ def run():
|
||||
|
||||
cv.waitKey(500)
|
||||
for rer in range(0, len(needles), 1):
|
||||
if check_for_ok_button():
|
||||
cv.waitKey(60000)
|
||||
continue
|
||||
while True:
|
||||
# do object detection
|
||||
screenshot = capture_window.get_screenshot()
|
||||
|
||||
Reference in New Issue
Block a user