Code: Select all
if(A_IsAdmin <> 0)
{
Hotkey, F2 , MyLabel
}
viewtopic.php?p=40388#p40388
Code: Select all
if(A_IsAdmin <> 0)
{
Hotkey, F2 , MyLabel
}
Code: Select all
#Requires AutoHotkey v1.1.36+
#If !A_IsAdmin
; here all the code for NOT A_IsAdmin
F1::MsgBox % A_IsAdmin ? "Admin" : "NOT Admin"
#If
; here all the code without restriction
F2::MsgBox % A_IsAdmin ? "Admin" : "NOT Admin"