Jump to content

Detect change user


Go to solution Solved by JLogan3o13,

Recommended Posts

Posted (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 by nend
  • Moderators
  • Solution
Posted (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 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!

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...