autoease.device.win.win module

@author: meili @contact: meili02@corp.netease.com @file: win.py @date: 2023/2/20 17:59 @desc:

class autoease.device.win.win.Windows(monitor=0, is_record=True, game_path=None, game_project_name=None, file_manager: Optional[FileManager] = None, **kwargs)[source]

Bases: Device

Windows client.

property get_game_log_path
property get_game_name
property get_game_path
property get_video_file_list
property get_screenshot_file_list
start_record()[source]
playback_record()[source]
stop_record()[source]
set_process_fronted()[source]
check_process_alive() bool[source]
click(button='LEFT', duration=0.05, repeat=1, **kwargs)[source]
double_click(button='LEFT', duration=0.05, **kwargs)[source]
mouse_drag(pos1: tuple, pos2: tuple, button='LEFT', duration=1, **kwargs)[source]
mouse_move_and_click(pos, duration=1, repeat=1, **kwargs)[source]
mouse_move(pos)[source]
mouse_wheel(steps, direction, duration=0.05)[source]
key_press(key, duration=None, **kwargs)[source]
keys_press(keys: list, internal=0.05, duration=0.05)[source]
key_up(key, **kwargs)[source]
key_down(key, **kwargs)[source]
key_write(text, duration=None, **kwargs)[source]
gamepad_button_down(button)[source]
gamepad_button_up(button)[source]
gamepad_button_press(button, duration)[source]
gamepad_left_joystick_set(x_value, y_value, duration)[source]
gamepad_left_joystick_set_and_reset(x_value, y_value, duration)[source]
gamepad_right_joystick_set(x_value, y_value, duration)[source]
gamepad_right_joystick_set_and_reset(x_value, y_value, duration)[source]
gamepad_left_trigger_set(value, duration)[source]
gamepad_left_trigger_set_and_reset(value, duration)[source]
gamepad_right_trigger_set(value, duration)[source]
gamepad_right_trigger_set_and_reset(value, duration)[source]
screenshot()[source]
img_exist(image: Template, **kwargs)[source]
img_assert_exists(image: Template, **kwargs)[source]
img_assert_not_exists(image: Template, **kwargs)[source]
img_click(image: Template, **kwargs)[source]
ocr_exist_sentence(word_list: list, **kwargs)[source]
ocr_assert_exist_sentence(word_list: list, **kwargs)[source]
ocr_click(sentence: str, **kwargs)[source]
ocr_exist_sentence_on_screen_rectangle(y1: int, x2: int, y2: int, word_list: list, **kwargs)[source]
wait_for_keyword(keyword, log_file_path, timeout=20, is_rematch=False, opfunc=None, **kwargs)[source]