My script starts with:
Code: Select all
#Persistent
#SingleInstance, force
#NoEnv
#Include StdOutToVar.ahk
; *** Force to run as Administrator ***
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}
knowing that if I click YES everything goes well.Verb: <RunAs>
Params: <>
--------> Run *RunAs "%A_ScriptFullPath%"
Specifically: The operation was canceled by the user.
Any help what am I doing wrong? Or if this error is necessary after clicking NO, is there any way to pass that?
Thank you in advance.