Sign in to follow this  
Followers 0
caramen

Is there a way to detect admin ?

6 posts in this topic

I am explaining :

I got my migration's script working fine now BUT... :) for one command i need to lunch the script in admin

and for others command i need to be user cause i am using @user parameters

i got that system in place :

Migration not done = Red color GUI

Migration done = Green color GUI

I whant to do :

Migration script runed with double click = no change

Migration script runed as = gui blue color or something like that

who can give me a way to work about that i realy dont got idea about how i can do that

how to say in my script something like that

if processexist Migration profil.EXE runed as LocalAdminUsername then Guibkground color = xx

hope i am clear enouth xD

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

IsAdmin

Checks if the current user has full administrator privileges.

the thing i want is check if the script got administrator privileges in user session.

because i am running the script as admin in user session

so to be clear it s not what i need :)

exept is you say me that function can support something like that:

just a logic exemple

$script = if _processexist (script.exe) then

if $script isadmin then 
GuiCtrtSetBkColor ($GUI1)
Edited by caramen

Share this post


Link to post
Share on other sites

ahhh yep !

I gonna try and resolve the topic if that work

Thx.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0