Sparrowlord Posted June 28, 2010 Share Posted June 28, 2010 Hi, I'm trying to switch users in my script, but I can't figure out how. I'm using windows 7. I tried sending the left windows key and L and all that did was bring up the start menu and type L. How to switch user? Thanks. Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2010 Share Posted June 28, 2010 Ive no idea how to do that, and Im not sure why you need it, but maybe RunAs() function might help you. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Sparrowlord Posted June 28, 2010 Author Share Posted June 28, 2010 Ive no idea how to do that, and Im not sure why you need it, but maybe RunAs() function might help you. I might not of been searching hard enough, but I can't find anything with RunAs() to help me switch users. Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2010 Share Posted June 28, 2010 It dosent physically switch the user, but it will run an application as another user. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Sparrowlord Posted June 28, 2010 Author Share Posted June 28, 2010 It dosent physically switch the user, but it will run an application as another user.That's not exactly what I'm trying to accomplish. I'm trying to create a script that will switch users, to take me back to the windows login screen, but not completely log me out. Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2010 Share Posted June 28, 2010 I have seen a dllcall for this but I cannot remember where maybe this will help you WinClose("Program Manager") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Sparrowlord Posted June 28, 2010 Author Share Posted June 28, 2010 Figured there would be a sure-fire quick way to do this.. Link to comment Share on other sites More sharing options...
Mat Posted June 28, 2010 Share Posted June 28, 2010 (edited) DllCall("User32.dll", "int", "LockWorkStation")Edit: Link Edited June 28, 2010 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
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