nend Posted February 28, 2014 Posted February 28, 2014 (edited) Hi, Is it possible to detect when a user has changed on windows when running a autoit program? I have a problem with a program it lost the hotkeys that I've set when Ive change a user and go back to the user witch start the program. So is it possible to detected it so I can set the hotkeys again after changing the user back? Edit: I see it's not always the issue so mabey it a other problem in my script. Thanks for looking at it. Edited February 28, 2014 by nend
Moderators Solution JLogan3o13 Posted February 28, 2014 Moderators Solution Posted February 28, 2014 (edited) If you're looking for just an occasional check, you can use the @UserName macro (helpfile) and compare it to a predetermined value. Or are you looking to intercept a logoff/fast user switching scenario? Edited February 28, 2014 by JLogan3o13 "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!
nend Posted February 28, 2014 Author Posted February 28, 2014 If you're looking for just an occasional check, you can use the @UserName macro (helpfile) and compare it to a predetermined value. Or are you looking to intercept a logoff/fast user switching scenario? Yeah It's so simple, I was just looking for the @Username macro. I was looking on this forum for more than a hour and it was so simple as a macro. Thanks for your help.
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