ClickTask(bid_now_button, positives=[min_bid_1]), HotKeyTask('enter', positives=[ok_button]), SequenceTask([ ClickTask(select_row, negatives=[bid_now_button], threshold=3), ClickTask(bid_buy_button, positives=[select_row], threshold=3), ], positives=[select_row], threshold=2), ClickTask(next_page_button, negatives=[select_row]) ] # tasks = [ # ClickTask(next_page_button, negatives=[select_row], threshold=1), # SequenceTask([ # ClickTask(select_row, negatives=[bid_now_button]), # ClickTask(bid_buy_button, positives=[select_row], negatives=[bid_now_button]), # ClickTask(bid_now_button, positives=[min_bid_1]), # HotKeyTask('enter', positives=[ok_button]), # HotKeyTask('escape', negatives=[min_bid_1, ok_button], positives=[bid_now_button]), # ], # # positives=[select_row], # # negatives=[bid_now_button] # ), # ] base.Bot(tasks, cycle_delay=.35, minutes=60).main()
ClickTask(item_two), ClickTask(item_one), ], negatives=[ 'templates/cancel.bmp', 'templates/mix.bmp', 'templates/bank.bmp' ], threshold=0), HoverLoc( bank_coords[0], bank_coords[1], negatives=[bank, item_two], ), # RngMouseMove(mst=6000, gst=12000), ] # tasks = [ # # RngMouseMove(), # StopTask(positives=['templates/smelting_oom.bmp']), # WaitTask(threshold=0, positives=['templates/cancel.bmp']), # ClickTask(template='templates/banker.bmp', positives=['templates/c_torstol.bmp'], # negatives=['templates/bank.bmp', ], # threshold=2.5, coords=(-1, -1)), # HotKeyTask('2', n_presses=1, positives=['templates/bank.bmp']), # HotKeyTask('2', n_presses=1, positives=['templates/g_torstol.bmp']), # HotKeyTask('space', n_presses=1, positives=['templates/clean_button.bmp']), # # ] base.Bot(tasks, cycle_delay=0, minutes=2400).main()
DragTask(sequence_prefix + 'task_manager.bmp'), ClickTask(sequence_prefix + 'file_manager.bmp'), ClickTask(sequence_prefix + '6_dots.bmp'), ClickTask(sequence_prefix + 'refresh.bmp'), ClickTask(sequence_prefix + 'file_name.bmp'), ClickTask(sequence_prefix + '6_dots.bmp'), ClickTask(sequence_prefix + 'delete.bmp'), DelFile(sequence_prefix + 'yes.bmp') ] )] button_tasks = [ ClickTask(path_prefix + file_name) for file_name in button_templates ] base.Bot(sequence_setup + button_tasks, cycle_delay=1, minutes=2400).main() # if __name__ == '__main__': # # top_left_template = cv2.imread('templates/bandori/sequence/back.bmp') # saved_img_dir = 'logs/' # for filename in os.listdir(saved_img_dir): # base_image = cv2.imread(saved_img_dir + filename) # # cv2.imwrite(saved_img_dir + filename, crop_image(base_image, top_left_template)) #