Ontosy 3 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 Share this post Link to post Share on other sites
stormbreaker 27 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 Share this post Link to post Share on other sites
JLogan3o13 1,623 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! Share this post Link to post Share on other sites
Ontosy 3 Posted August 30, 2012 wondering if there is a more direct way Share this post Link to post Share on other sites