caramen Posted March 31, 2015 Share Posted March 31, 2015 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 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
JohnOne Posted March 31, 2015 Share Posted March 31, 2015 Not sure I understand what you need very well. Look at IsAdmin() function, see if that helps. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
caramen Posted March 31, 2015 Author Share Posted March 31, 2015 (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 March 31, 2015 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
JohnOne Posted March 31, 2015 Share Posted March 31, 2015 So if the user start the script with Run as administrator, that's what you want to know? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted March 31, 2015 Share Posted March 31, 2015 If so, I believe >this is what you need. Tested. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
caramen Posted March 31, 2015 Author Share Posted March 31, 2015 ahhh yep ! I gonna try and resolve the topic if that work Thx. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now