Ontosy Posted August 30, 2012 Posted August 30, 2012 (edited) I log in windows as "AlfaUser"If i launch as administrator this script:MsgBox(0,0,@UserName)i obtain "Administrator"but do it is possible to obtain "AlfaUser"?I have found and works. Have other? Edited August 30, 2012 by Ontosy
stormbreaker Posted August 30, 2012 Posted August 30, 2012 Does this help you? $STRING = StringSplit(@UserProfileDir, "") msgbox(64, "", $STRING[$STRING[0]]) ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1
Moderators JLogan3o13 Posted August 30, 2012 Moderators Posted August 30, 2012 If the script in your link works, what exactly is your question? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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