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 11[ English] ( README.md ) | 繁體中文
22# 自動按鍵工具
33一個可以模擬鍵盤和滑鼠操作的工具,用 python 製作。
4-
4+ ### 前置
5+ * ``` pip install keyboard ```
6+ * ``` pip install pyautogui ```
7+ * ``` pip install pillow ```
58## 說明
69## 語法
710* 鍵盤操作
7073 * click left/right/middle hold release
7174 > 按住再鬆開
7275 * scroll
73- > use mouse scroll
76+ > 滑鼠滾動
7477 * scroll up/down
75- > scroll onece
78+ > 滾動一次
7679 * 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+ > 這個語法,將能使指令間停頓
8083 * 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 來判定
8487 * 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 來取消。
8689 * loop end
8790 > after a loop need to put loop end to declare a stop for loop.
8891* if
139142
140143* down arrow: 下方向鍵
141144
145+ ## 紀錄
146+ ### Ver0.1
147+ * 功能:
148+ * GUI
149+ * 編輯檔按
150+ * 存讀檔
151+ * 運行
152+ * 基礎語法
153+ * 迴圈
154+ * if 判斷
155+ * 按鍵
156+ * 移動
157+ * 休眠
158+ * 離開
159+ * 讀檔
160+ * 存檔
161+
142162## TODO
143163- [X] if else: to detect image and to do something
144164- [ ] count
145165- [ ] not bool
146166- [ ] record
147167- [ ] support excel
148- - [ ] gui
168+ - [x ] gui
149169- [ ] 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