Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
/ GridMove Public archive

Commit

Permalink
feat: run as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mirtlecn committed Apr 15, 2024
1 parent 0a71366 commit bb941bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GridMove.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Gap := 1

ScriptVersion = 2.04

if (! A_IsAdmin){
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}

; Detect Windows 10
if % substr(a_osversion, 1, 2) = 10
Windows10:=True
Expand Down Expand Up @@ -1670,7 +1675,7 @@ StartWithWindowsToggle:
}
else
{
FileCreateShortcut,%A_ScriptDir%/GridMove.exe,%A_startup%\GridMove.lnk
FileCreateShortcut,%A_ScriptFullPath%,%A_startup%\GridMove.lnk
StartWithWindows := true
}

Expand Down

0 comments on commit bb941bf

Please sign in to comment.