Skip to content

Commit 11070b4

Browse files
committed
Update example jsons
Update example jsons
1 parent 88ce693 commit 11070b4

7 files changed

Lines changed: 391 additions & 45 deletions

File tree

.idea/workspace.xml

Lines changed: 66 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# This example is primarily intended to remind users of the importance of verifying input.
3+
from je_auto_control import execute_action, read_action_json
4+
5+
execute_action(
6+
read_action_json(
7+
r"D:\Codes\AutoControlGUI\AutoControl\keyword\bad_keyword_1.json"
8+
)
9+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from je_auto_control import execute_files, get_dir_files_as_list
2+
3+
execute_files(
4+
get_dir_files_as_list(
5+
r"D:\Codes\AutoControlGUI\AutoControl\keyword"
6+
)
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from je_auto_control import execute_action, read_action_json
2+
3+
execute_action(
4+
read_action_json(
5+
r"D:\Codes\AutoControlGUI\AutoControl\keyword\keyword1.json"
6+
)
7+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
[
3+
"AC_set_record_enable",
4+
[
5+
true
6+
]
7+
],
8+
[
9+
"AC_add_package_to_executor",
10+
[
11+
"os"
12+
]
13+
],
14+
[
15+
"os_system",
16+
[
17+
"python --version"
18+
]
19+
],
20+
[
21+
"os_system",
22+
[
23+
"python -m pip --version"
24+
]
25+
]
26+
]

AutoControl/keyword/keyword1.json

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
[
2+
[
3+
"AC_set_record_enable",
4+
[
5+
true
6+
]
7+
],
8+
[
9+
"AC_write",
10+
{
11+
"write_string": "Hello World"
12+
}
13+
],
14+
[
15+
"AC_type_keyboard",
16+
{
17+
"keycode": "return"
18+
}
19+
],
20+
[
21+
"AC_write",
22+
{
23+
"write_string": "If you want Windows write upcase string"
24+
}
25+
],
26+
[
27+
"AC_type_keyboard",
28+
{
29+
"keycode": "return"
30+
}
31+
],
32+
[
33+
"AC_write",
34+
{
35+
"write_string": "you need to press shift first"
36+
}
37+
],
38+
[
39+
"AC_type_keyboard",
40+
{
41+
"keycode": "return"
42+
}
43+
],
44+
[
45+
"AC_press_keyboard_key",
46+
{
47+
"keycode": "shift"
48+
}
49+
],
50+
[
51+
"AC_write",
52+
{
53+
"write_string": "UPCASEE"
54+
}
55+
],
56+
[
57+
"AC_release_keyboard_key",
58+
{
59+
"keycode": "shift"
60+
}
61+
],
62+
[
63+
"AC_type_keyboard",
64+
{
65+
"keycode": "return"
66+
}
67+
],
68+
[
69+
"AC_write",
70+
{
71+
"write_string": "this is example how to use keyword"
72+
}
73+
],
74+
[
75+
"AC_write",
76+
{
77+
"write_string": " and add module to executor"
78+
}
79+
],
80+
[
81+
"AC_type_keyboard",
82+
{
83+
"keycode": "return"
84+
}
85+
],
86+
[
87+
"AC_write",
88+
{
89+
"write_string": "now i will add time module and sleep 3 sec"
90+
}
91+
],
92+
[
93+
"AC_add_package_to_executor",
94+
[
95+
"time"
96+
]
97+
],
98+
[
99+
"time_sleep",
100+
[
101+
3
102+
]
103+
],
104+
[
105+
"AC_type_keyboard",
106+
{
107+
"keycode": "return"
108+
}
109+
],
110+
[
111+
"AC_write",
112+
{
113+
"write_string": "also you can use builtin function on executor like print"
114+
}
115+
],
116+
[
117+
"print",
118+
[
119+
"Google Bye World"
120+
]
121+
],
122+
[
123+
"AC_type_keyboard",
124+
{
125+
"keycode": "return"
126+
}
127+
],
128+
[
129+
"AC_write",
130+
{
131+
"write_string": "and i will create an html report for you"
132+
}
133+
],
134+
[
135+
"AC_generate_html_report"
136+
],
137+
[
138+
"AC_type_keyboard",
139+
{
140+
"keycode": "return"
141+
}
142+
]
143+
]

0 commit comments

Comments
 (0)