check if Doro is elevated

This commit is contained in:
Kyouka 2024-08-18 17:35:27 +08:00
parent eb07bc2a7e
commit 507f104552
1 changed files with 5 additions and 0 deletions

View File

@ -2294,6 +2294,11 @@ ChangeOnSleepTime(GUICtrl, *)
ClickOnDoro(*) ClickOnDoro(*)
{ {
if !A_IsAdmin {
MsgBox "请以管理员身份运行Doro"
ExitApp
}
WinGetClientPos ,, &userScreenW, &userScreenH, "NIKKE" WinGetClientPos ,, &userScreenW, &userScreenH, "NIKKE"
global scrRatio global scrRatio
scrRatio := userScreenW / stdScreenW scrRatio := userScreenW / stdScreenW