Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 66 additions & 45 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions AutoControl/executor/executor_bad_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# This example is primarily intended to remind users of the importance of verifying input.
from je_auto_control import execute_action, read_action_json

execute_action(
read_action_json(
r"D:\Codes\AutoControlGUI\AutoControl\keyword\bad_keyword_1.json"
)
)
7 changes: 7 additions & 0 deletions AutoControl/executor/executor_folder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from je_auto_control import execute_files, get_dir_files_as_list

execute_files(
get_dir_files_as_list(
r"D:\Codes\AutoControlGUI\AutoControl\keyword"
)
)
7 changes: 7 additions & 0 deletions AutoControl/executor/executor_one_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from je_auto_control import execute_action, read_action_json

execute_action(
read_action_json(
r"D:\Codes\AutoControlGUI\AutoControl\keyword\keyword1.json"
)
)
26 changes: 26 additions & 0 deletions AutoControl/keyword/bad_keyword_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
[
"AC_set_record_enable",
[
true
]
],
[
"AC_add_package_to_executor",
[
"os"
]
],
[
"os_system",
[
"python --version"
]
],
[
"os_system",
[
"python -m pip --version"
]
]
]
143 changes: 143 additions & 0 deletions AutoControl/keyword/keyword1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
[
[
"AC_set_record_enable",
[
true
]
],
[
"AC_write",
{
"write_string": "Hello World"
}
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "If you want Windows write upcase string"
}
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "you need to press shift first"
}
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_press_keyboard_key",
{
"keycode": "shift"
}
],
[
"AC_write",
{
"write_string": "UPCASEE"
}
],
[
"AC_release_keyboard_key",
{
"keycode": "shift"
}
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "this is example how to use keyword"
}
],
[
"AC_write",
{
"write_string": " and add module to executor"
}
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "now i will add time module and sleep 3 sec"
}
],
[
"AC_add_package_to_executor",
[
"time"
]
],
[
"time_sleep",
[
3
]
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "also you can use builtin function on executor like print"
}
],
[
"print",
[
"Google Bye World"
]
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
],
[
"AC_write",
{
"write_string": "and i will create an html report for you"
}
],
[
"AC_generate_html_report"
],
[
"AC_type_keyboard",
{
"keycode": "return"
}
]
]
Loading
Loading