mIRC Home    About    Download    Register    News    Help

Print Thread
#257113 15/03/16 12:55 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Hello,

It would be nice if you can add an identifier that will return $true or $false if the currently active mIRC is running under Administrator Privileges, as now we can't handle if the mIRC is running under Administrator Privileges or not, this will also helps the mIRC for debugging report purpose too.

Usage: //echo -a IS: $mircadmin
Results: $true/$false

Example Code:

Code:
ON *:START: {
  if (!$mircadmin) { echo -a You must run the mIRC as Administrator in order to work some extra features! | exit -n }
}


- Thanks!

westor #257257 25/03/16 12:27 PM
Joined: Sep 2015
Posts: 93
K
Vogon poet
Offline
Vogon poet
K
Joined: Sep 2015
Posts: 93
This will be a great option, especially for scripters


Link Copied to Clipboard