Sitelet https://github.com/bcl-dev/ClickExpert/commit/fe7eb4ede4aa8d07ca002011e194ebb23937d91b
Skip to content

Commit fe7eb4e

Browse files
author
bo
committed
代码优化; UI 调整; update readme;
1 parent 1d236ee commit fe7eb4e

3 files changed

Lines changed: 29 additions & 22 deletions

File tree

‎ClickExpert/ClickExpert.t‎

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ function ExpertModeComponentStatusRefesh()
246246
controlenable("Expert_AddSendStrCommandButton", expertModeChecked)
247247
controlenable("Expert_AddDelayCommandButton", expertModeChecked)
248248
249+
// 录制按钮
250+
controlenable("Expert_StartRecordButton", expertModeChecked)
251+
249252
// 命令列表控件
250253
controlenable("Expert_ImportCommandListButton", expertModeChecked)
251254
controlenable("Expert_ExportCommandListButton", expertModeChecked)
@@ -295,6 +298,22 @@ function Expert_AddDelayCommandButton_点击()
295298
addDelayCommandToList(ms)
296299
end
297300
301+
function Expert_StartRecordButton_点击()
302+
controlenable("ExpertModeCheckBox", false)
303+
controlenable("Expert_StartRecordButton", false)
304+
controlenable("Expert_StopRecordButton", true)
305+
306+
startRecord()
307+
end
308+
309+
function Expert_StopRecordButton_点击()
310+
controlenable("ExpertModeCheckBox", true)
311+
controlenable("Expert_StartRecordButton", true)
312+
controlenable("Expert_StopRecordButton", false)
313+
314+
stopRecord()
315+
end
316+
298317
function Expert_ImportCommandListButton_点击()
299318
var path = filedialog(1, "ClickExpert(*.ce)")
300319
if(path == "")
@@ -380,6 +399,10 @@ function SaveSettings_点击()
380399
messagebox("应用成功", "Info")
381400
end
382401
402+
function ClickExpert_销毁()
403+
stopRecord()
404+
end
405+
383406
//======================================== 热键事件 ========================================
384407
385408
function StartHotKey_热键()
@@ -665,23 +688,3 @@ function debug(obj, fn)
665688
filelog("fn: " & fn & " => " & obj, "./debug.log")
666689
end
667690
end
668-
669-
670-
function 按钮0_点击()
671-
//这里添加你要执行的代码
672-
startRecord()
673-
674-
end
675-
676-
677-
function 按钮1_点击()
678-
//这里添加你要执行的代码
679-
stopRecord()
680-
681-
end
682-
683-
684-
function ClickExpert_销毁()
685-
//这里添加你要执行的代码
686-
stopRecord()
687-
end

‎ClickExpert/main.twin‎

184 Bytes
Binary file not shown.

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
## Usage
3030

31-
![snipaste_20191023_131659.jpg](https://i.loli.net/2019/10/23/IPSKbnl16OaYL5i.jpg)
31+
![snipaste_20191025_164205.jpg](https://i.loli.net/2019/10/25/djuveQit4kArWzq.jpg)
3232

3333
鼠标连点: 选择鼠标按键, 设置延迟. 启动后将连续执行点击.
3434

@@ -38,7 +38,11 @@
3838
- 点击 `+` 添加命令至列表
3939
- 双击命令列表的一行, 可删除命令
4040
- 支持导入/导出命令列表
41-
- **添加命令后, 点击 `应用设置` 使命令列表生效**
41+
- 支持录制键鼠
42+
43+
44+
45+
**设置完成后, 点击 `应用设置` 使命令列表生效**
4246

4347

4448

0 commit comments

Comments
 (0)