File tree Expand file tree Collapse file tree 1 file changed +35
-11
lines changed Expand file tree Collapse file tree 1 file changed +35
-11
lines changed Original file line number Diff line number Diff line change 1
1
[ English] ( README.md ) | 繁體中文
2
2
# 自動按鍵工具
3
3
一個可以模擬鍵盤和滑鼠操作的工具,用 python 製作。
4
-
4
+ ### 前置
5
+ * ``` pip install keyboard ```
6
+ * ``` pip install pyautogui ```
7
+ * ``` pip install pillow ```
5
8
## 說明
6
9
## 語法
7
10
* 鍵盤操作
70
73
* click left/right/middle hold release
71
74
> 按住再鬆開
72
75
* scroll
73
- > use mouse scroll
76
+ > 滑鼠滾動
74
77
* scroll up/down
75
- > scroll onece
78
+ > 滾動一次
76
79
* scroll up/down amount
77
- > scroll the certain amount
78
- * sleep
79
- > this method is for waiting the instruction. To slow down your script.
80
+ > 滾動 N 次
81
+ * 休眠
82
+ > 這個語法,將能使指令間停頓
80
83
* sleep N
81
- > wait for N seconds
82
- * loop
83
- > loop is a specific syntax. It has no effect but it can be mixed with other features.
84
+ > 等待 N 秒
85
+ * 迴圈
86
+ > 迴圈是一個特殊語法,可以組合其他語法使用,且具備區塊的特性,所以需要 end 來判定
84
87
* loop N
85
- > loop N times. if N == -1 it will be infinite loop. It can be break with esc.
88
+ > 重複 N 次。如果 N = -1 則為無窮迴圈,無窮迴圈可以按 esc 來取消。
86
89
* loop end
87
90
> after a loop need to put loop end to declare a stop for loop.
88
91
* if
139
142
140
143
* down arrow: 下方向鍵
141
144
145
+ ## 紀錄
146
+ ### Ver0.1
147
+ * 功能:
148
+ * GUI
149
+ * 編輯檔按
150
+ * 存讀檔
151
+ * 運行
152
+ * 基礎語法
153
+ * 迴圈
154
+ * if 判斷
155
+ * 按鍵
156
+ * 移動
157
+ * 休眠
158
+ * 離開
159
+ * 讀檔
160
+ * 存檔
161
+
142
162
## TODO
143
163
- [X] if else: to detect image and to do something
144
164
- [ ] count
145
165
- [ ] not bool
146
166
- [ ] record
147
167
- [ ] support excel
148
- - [ ] gui
168
+ - [x ] gui
149
169
- [ ] generate instruction file
170
+ - [x] comment
171
+ - [ ] run other file
172
+ - [ ] jump
173
+ - [ ] exec
You can’t perform that action at this time.
0 commit comments