Skip to content

Commit dc93e93

Browse files
committed
Update keyword and dev version
Update keyword & dev version * Rename keyword with prefix MT (Mail and Thunder first alphabet)
1 parent 20c3a7f commit dc93e93

File tree

18 files changed

+275
-273
lines changed

18 files changed

+275
-273
lines changed

.idea/workspace.xml

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

je_auto_control/linux_with_x11/record/x11_linux_record.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from queue import Queue
1414

15-
type_dict = {5: "mouse", 3: "type_keyboard"}
16-
detail_dict = {1: "mouse_left", 2: "mouse_middle", 3: "mouse_right"}
15+
type_dict = {5: "mouse", 3: "AC_type_keyboard"}
16+
detail_dict = {1: "AC_mouse_left", 2: "AC_mouse_middle", 3: "AC_mouse_right"}
1717

1818

1919
class X11LinuxRecorder(object):

je_auto_control/osx/listener/osx_listener.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ def applicationDidFinishLaunching_(self, aNotification):
2626

2727
def mouse_left_handler(event) -> None:
2828
loc = NSEvent.mouseLocation()
29-
record_queue.put(("mouse_left", loc.x, loc.y))
29+
record_queue.put(("AC_mouse_left", loc.x, loc.y))
3030

3131

3232
def mouse_right_handler(event) -> None:
3333
loc = NSEvent.mouseLocation()
34-
record_queue.put(("mouse_right", loc.x, loc.y))
34+
record_queue.put(("AC_mouse_right", loc.x, loc.y))
3535

3636

3737
def keyboard_handler(event) -> None:
3838
if int(event.keyCode()) == 98:
3939
pass
4040
else:
41-
record_queue.put(("type_keyboard", int(hex(event.keyCode()), 16)))
41+
record_queue.put(("AC_type_keyboard", int(hex(event.keyCode()), 16)))
4242
print(event)
4343

4444

je_auto_control/utils/callback/callback_function_executor.py

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -61,62 +61,62 @@ class CallbackFunctionExecutor(object):
6161
def __init__(self):
6262
self.event_dict: dict = {
6363
# mouse
64-
"mouse_left": click_mouse,
65-
"mouse_right": click_mouse,
66-
"mouse_middle": click_mouse,
67-
"click_mouse": click_mouse,
68-
"get_mouse_table": get_mouse_table,
69-
"get_mouse_position": get_mouse_position,
70-
"press_mouse": press_mouse,
71-
"release_mouse": release_mouse,
72-
"mouse_scroll": mouse_scroll,
73-
"set_mouse_position": set_mouse_position,
74-
"get_special_table": get_special_table,
64+
"AC_mouse_left": click_mouse,
65+
"AC_mouse_right": click_mouse,
66+
"AC_mouse_middle": click_mouse,
67+
"AC_click_mouse": click_mouse,
68+
"AC_get_mouse_table": get_mouse_table,
69+
"AC_get_mouse_position": get_mouse_position,
70+
"AC_press_mouse": press_mouse,
71+
"AC_release_mouse": release_mouse,
72+
"AC_mouse_scroll": mouse_scroll,
73+
"AC_set_mouse_position": set_mouse_position,
74+
"AC_get_special_table": get_special_table,
7575
# keyboard
76-
"get_keyboard_keys_table": get_keyboard_keys_table,
77-
"type_keyboard": type_keyboard,
78-
"press_keyboard_key": press_keyboard_key,
79-
"release_keyboard_key": release_keyboard_key,
80-
"check_key_is_press": check_key_is_press,
81-
"write": write,
82-
"hotkey": hotkey,
76+
"AC_get_keyboard_keys_table": get_keyboard_keys_table,
77+
"AC_type_keyboard": type_keyboard,
78+
"AC_press_keyboard_key": press_keyboard_key,
79+
"AC_release_keyboard_key": release_keyboard_key,
80+
"AC_check_key_is_press": check_key_is_press,
81+
"AC_write": write,
82+
"AC_hotkey": hotkey,
8383
# image
84-
"locate_all_image": locate_all_image,
85-
"locate_image_center": locate_image_center,
86-
"locate_and_click": locate_and_click,
84+
"AC_locate_all_image": locate_all_image,
85+
"AC_locate_image_center": locate_image_center,
86+
"AC_locate_and_click": locate_and_click,
8787
# screen
88-
"screen_size": screen_size,
89-
"screenshot": screenshot,
88+
"AC_screen_size": screen_size,
89+
"AC_screenshot": screenshot,
9090
# test record
91-
"set_record_enable": test_record_instance.set_record_enable,
91+
"AC_set_record_enable": test_record_instance.set_record_enable,
9292
# only generate
93-
"generate_html": generate_html,
94-
"generate_json": generate_json,
95-
"generate_xml": generate_xml,
93+
"AC_generate_html": generate_html,
94+
"AC_generate_json": generate_json,
95+
"AC_generate_xml": generate_xml,
9696
# generate report
97-
"generate_html_report": generate_html_report,
98-
"generate_json_report": generate_json_report,
99-
"generate_xml_report": generate_xml_report,
97+
"AC_generate_html_report": generate_html_report,
98+
"AC_generate_json_report": generate_json_report,
99+
"AC_generate_xml_report": generate_xml_report,
100100
# record
101-
"record": record,
102-
"stop_record": stop_record,
101+
"AC_record": record,
102+
"AC_stop_record": stop_record,
103103
# execute
104-
"execute_action": execute_action,
105-
"execute_files": execute_files,
104+
"AC_execute_action": execute_action,
105+
"AC_execute_files": execute_files,
106106
"create_template_dir": create_project_dir,
107107
"get_dir_files_as_list": get_dir_files_as_list,
108108
"pil_screenshot": pil_screenshot,
109109
"read_action_json": read_action_json,
110110
"write_action_json": write_action_json,
111111
"start_autocontrol_socket_server": start_autocontrol_socket_server,
112-
"add_package_to_executor": package_manager.add_package_to_executor,
113-
"add_package_to_callback_executor": package_manager.add_package_to_callback_executor,
112+
"AC_add_package_to_executor": package_manager.add_package_to_executor,
113+
"AC_add_package_to_callback_executor": package_manager.add_package_to_callback_executor,
114114
# project
115-
"create_project": create_project_dir,
115+
"AC_create_project": create_project_dir,
116116
# Shell
117-
"shell_command": ShellManager().exec_shell,
117+
"AC_shell_command": ShellManager().exec_shell,
118118
# Another process
119-
"execute_process": start_exe,
119+
"AC_execute_process": start_exe,
120120
}
121121

122122
def callback_function(

0 commit comments

Comments
 (0)