Skip to content

Commit

Permalink
fix: make sure startup
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Jan 6, 2022
1 parent 5e2e7c0 commit e4d0125
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Modules/应用-OneNote2016增强.ahk
Expand Up @@ -180,6 +180,7 @@ OneNote2016搜索启动() {
return k
}

; 注意win11下OneNote启动热键变成了Win+Alt+N,而Win+N的新功能为打开消息中心
; 原热键,打开快速笔记
; $#n:: SendEvent #n
; 打开 主页
Expand Down
11 changes: 11 additions & 0 deletions Modules/插件-新手教程.ahk
Expand Up @@ -27,6 +27,7 @@ m:: 配置文件编辑()

CapsLockX_配置窗口(){
Gui, Add, Button, Default w80, 确认
Gui, Add, Button, w80, 开机自动启动添加

Gui, Add, Text, , CapsLockX_配置目录:%CapsLockX_配置目录%

Expand Down Expand Up @@ -60,6 +61,16 @@ CapsLockX_配置窗口(){
Gui, Show
}

MakeSureStartup(){
content = start "" %A_AhkPath%
startCMDPath = %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\capslockx-startup.cmd
FileDelete, %startCMDPath%
FileAppend, %content%, %startCMDPath%
}

Button开机自动启动添加:
MakeSureStartup()
return
CapsLockX_配置刷新:
gui, submit, nohide
CapsLockX_ConfigSet("Core", "T_XKeyAsCapsLock", T_XKeyAsCapsLock, "使用 Space 作为引导键(默认启用,用户启用)")
Expand Down

0 comments on commit e4d0125

Please sign in to comment.