11import sys
22import types
33
4- from je_auto_control import keys_table , press_key , release_key , hotkey , type_key , write
4+ from je_auto_control import press_key , release_key , hotkey , type_key , write , record , stop_record
55from je_auto_control import locate_all_image , locate_and_click , locate_image_center
6- from je_auto_control import mouse_table , check_key_is_press , position , press_mouse , release_mouse , click_mouse , scroll
6+ from je_auto_control import check_key_is_press , position , press_mouse , release_mouse , click_mouse , scroll
77from je_auto_control import set_position
8- from je_auto_control import screenshot , size , special_table
8+ from je_auto_control import screenshot , size
99from je_auto_control .utils .exception .exception_tag import action_is_null_error , add_command_exception_tag , \
1010 executor_list_error
1111from je_auto_control .utils .exception .exception_tag import cant_execute_action_error
1414from je_auto_control .utils .html_report .html_report_generate import generate_html
1515from je_auto_control .utils .json .json_file import read_action_json
1616from je_auto_control .utils .test_record .record_test_class import record_action_to_list , test_record_instance
17+ from je_auto_control .wrapper .auto_control_keyboard import get_special_table , get_keys_table
18+ from je_auto_control .wrapper .auto_control_mouse import get_mouse_table
1719
1820
1921class Executor (object ):
@@ -25,15 +27,15 @@ def __init__(self):
2527 "mouse_right" : click_mouse ,
2628 "mouse_middle" : click_mouse ,
2729 "click_mouse" : click_mouse ,
28- "mouse_table" : mouse_table ,
30+ "mouse_table" : get_mouse_table ,
2931 "position" : position ,
3032 "press_mouse" : press_mouse ,
3133 "release_mouse" : release_mouse ,
3234 "scroll" : scroll ,
3335 "set_position" : set_position ,
34- "special_table" : special_table ,
36+ "special_table" : get_special_table ,
3537 # keyboard
36- "keys_table" : keys_table ,
38+ "keys_table" : get_keys_table ,
3739 "type_key" : type_key ,
3840 "press_key" : press_key ,
3941 "release_key" : release_key ,
@@ -51,6 +53,9 @@ def __init__(self):
5153 "set_record_enable" : test_record_instance .set_record_enable ,
5254 # generate html
5355 "generate_html" : generate_html ,
56+ # record
57+ "record" : record ,
58+ "stop_record" : stop_record ,
5459 }
5560
5661 def _execute_event (self , action : list ):
0 commit comments