def main(): user32 = windll.user32 user32.SetProcessDPIAware() logging.basicConfig( level=0, format= '%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") constants.init_constants(u'阴阳师-网易游戏', move_window=False) game = Baiguiyexing() game.start()
y1=720 - random.randrange(10), duration=0.5) utilities.random_sleep(0.2, 0.5) click((681, 263), random_range=10, need_convert=True) wait_for_color(LocatorColor.Map) click((420, 943), random_range=3, need_convert=True) utilities.random_sleep(1, 2) click((1648, 505), random_range=3, need_convert=True) utilities.random_sleep(1, 1.5) if __name__ == '__main__': user32 = windll.user32 user32.SetProcessDPIAware() constants.init_constants(u'阴阳师-网易游戏', move_window=1) logging.basicConfig( level=0, format= '%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") main_all_tupo(3, True) # x = PersonalTuPo() # x.wait_for_next_refresh() # main_liaotupo() # for i in targets_cords: # single_target = SingleTarget(i) # # o = grab_screen(single_target.region) # # o = Image.fromarray(o)
import logging from ctypes import windll user32 = windll.user32 user32.SetProcessDPIAware() logging.basicConfig( level=0, format= '%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") # # constants.init_constants(u'阴阳师-网易游戏', move_window=False) # constants.init_constants(u'阴阳师-网易游戏', move_window=True) # as_leader('御魂') constants.init_constants(u'[#] 阴阳师-网易游戏 [#]', move_window=False) as_leader('御魂', chaoguiwang=False) # as_member('御魂') # if __name__ == '__main__': # import constants # import combat # import logging # from ctypes import windll # # user32 = windll.user32 # user32.SetProcessDPIAware() # # constants.init_constants(u'[#] 阴阳师-网易游戏 [#]') # logging.basicConfig( # level=0,
import win32api import constants import img from party import main_yaoqi from ctypes import windll from grabscreen import grab_screen from jiejietupo import * import logging def resolution(): # 获取屏幕分辨率 return win32api.GetSystemMetrics(0), win32api.GetSystemMetrics(1) # # target_monster = img.ss_img.HAIFANGZHU # count = 4 # main_yaoqi(count, target_monster) # if __name__ == '__main__': user32 = windll.user32 user32.SetProcessDPIAware() constants.init_constants() logging.basicConfig( level=0, format= '%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") main_all_tupo(3, True)