Skip to content

Commit

Permalink
add获取管理员权限错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
UCPr251 committed Aug 14, 2024
1 parent ada1cda commit 9d7221f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 零号业绩.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ init() {
} else {
Run('*RunAs "' A_AhkPath '" /restart "' A_ScriptFullPath '"')
}
} catch {
MsgBox("自动获取管理员权限失败,请右键脚本选择以管理员身份运行", "错误", "Iconx 0x40000")
}
} else {
MsgBox("请右键脚本选择以管理员身份运行脚本", "错误", "Iconx 0x40000")
MsgBox("请右键脚本选择以管理员身份运行", "错误", "Iconx 0x40000")
}
ExitApp()
}
Expand Down

0 comments on commit 9d7221f

Please sign in to comment.