Tarte Posted March 16, 2004 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.
CyberGlitch Posted March 16, 2004 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
Tarte Posted March 16, 2004 Author Posted March 16, 2004 That was what I needed, except I needed to remove the space from "shift down" THANKS ALOT!!!!!!
Administrators Jon Posted March 16, 2004 Administrators Posted March 16, 2004 Is there some reason that the built in RunAsSet function isn't working for you?
Tarte Posted March 16, 2004 Author 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
Administrators Jon Posted March 16, 2004 Administrators 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!
Tarte Posted March 17, 2004 Author 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.
Administrators Jon Posted March 17, 2004 Administrators 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.
Tarte Posted March 18, 2004 Author 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
Nutster Posted March 18, 2004 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...
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