Tarte Posted March 16, 2004 Share Posted March 16, 2004 Does anyone know the correct sytax for doing a shift right click? I am trying to do a "Run As" by using the shift right click feature. Link to comment Share on other sites More sharing options...
CyberGlitch Posted March 16, 2004 Share Posted March 16, 2004 Send("{SHIFT down}") ;press and hold shift down MouseClick("Right", x, y) ;Click right on the x,y cords. Send("{SHIFT up}") ;let go of the shift button Link to comment Share on other sites More sharing options...
Tarte Posted March 16, 2004 Author Share Posted March 16, 2004 That was what I needed, except I needed to remove the space from "shift down" THANKS ALOT!!!!!! Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 16, 2004 Administrators Share Posted March 16, 2004 Is there some reason that the built in RunAsSet function isn't working for you? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Tarte Posted March 16, 2004 Author Share Posted March 16, 2004 I did a search in the AutoIT help for Run As not RUNAS and did not see that until you metioned it. However, because it is a domain password I would rather do that part manually, THANK YOU VERY MUCH for showing me the BuiltIn one though Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 16, 2004 Administrators Share Posted March 16, 2004 If you want to get someone to type in the password, just use the inputbox() function to get the domain password and then RunAsSet and Run to run the command you want. MUCH safer than mouseclicks! Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Tarte Posted March 17, 2004 Author Share Posted March 17, 2004 Jon, :-) I was trying what you recommended. however, doing it that way does not let the script continue as the local user until I close dsa.msc. I only want to kick dsa.msc off as an admin but continue running as the local user. I get other information from other sources that I dont want running as an admin. Thanks VERY much for all your help. Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 17, 2004 Administrators Share Posted March 17, 2004 That's fine, use RunAsSet to set admin, then use Run (not RunWAIT) to run your msc as admin, then use RunAsSet to reset to normal local user rights for the rest of your script. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Tarte Posted March 18, 2004 Author Share Posted March 18, 2004 what would be the proper syntac for the inputbox suggestion you gave for the password? RunAsSet("domainadminaccount", "domain", "variable") I seem to have trouble entering variables if I dont input them independantly Link to comment Share on other sites More sharing options...
Nutster Posted March 18, 2004 Share Posted March 18, 2004 $password=InputBox("Please enter the admin password", "Password Entry", "*") RunAsSet("domainadminaccount", "domain", $password) Run("WhateverProgram.exe") David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... 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