@@ -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)
296299end
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+
298317function Expert_ImportCommandListButton_点击()
299318 var path = filedialog(1, " ClickExpert (* .ce)")
300319 if(path == "")
@@ -380,6 +399,10 @@ function SaveSettings_点击()
380399 messagebox(" 应用成功", " Info")
381400end
382401
402+ function ClickExpert_销毁()
403+ stopRecord()
404+ end
405+
383406//======================================== 热键事件 ========================================
384407
385408function StartHotKey_热键()
@@ -665,23 +688,3 @@ function debug(obj, fn)
665688 filelog(" fn: " & fn & " = > " & obj, " ./ debug.log")
666689 end
667690end
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
0 commit comments