Skip to content

Commit

Permalink
fix: dont save user script
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Nov 2, 2021
1 parent d2a620b commit f61702c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Modules/插件-用户脚本编辑.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,15 @@ UserModuleEdit(路径, 使用进程名AHK := 0){
if (!FileExist(路径))
FileAppend, %快速窗口热键编辑初始内容%, %路径%
填充内容 := "`n" "`n" "#if WinActive(""" match """)" "`n" "`n" "!```:`: TrayTip, CapsLockX, 在当前窗口按下了Alt+````" "`n"
FileAppend, %填充内容%, %路径%
Run notepad %路径%
; FileAppend, %填充内容%, %路径%
clipboard := 填充内容
Run notepad "%路径%"
WinWaitActive Notepad,,3
if(ErrorLevel){
return
}
Sleep 2000
SendEvent ^{End}^v
}

; 快速宏
Expand Down

0 comments on commit f61702c

Please sign in to comment.