Jump to content
Sign in to follow this  
nend

Detect change user

Recommended Posts

nend

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

Share this post


Link to post
Share on other sites
JLogan3o13

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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
nend

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.