speedi Posted April 10, 2009 Posted April 10, 2009 I tried this: RunWait("powercfg.exe" & "/change " & chr(34) & "home/office desk" & chr(34) & " /monitor-timeout-ac 5",,) It does not work due to problem with quote marks I think. I am trying to do this, which does work in a command window.. (powercfg /change "home/office desk" /monitor-timeout-ac 5) I always have problems with quotes in my run command lines... Thanks for any hep provided!!! Jim
Marlo Posted April 10, 2009 Posted April 10, 2009 Try this. RunWait("powercfg.exe /change ""home/office desk"" /monitor-timeout-ac 5") Click here for the best AutoIt help possible.Currently Working on: Autoit RAT
iLoveAU3 Posted April 10, 2009 Posted April 10, 2009 RunWait("powercfg.exe " & '/change "home/office desk" /monitor-timeout-ac 5', "", "") if you want to put some parameters in command line make sure there is a space between file path and parameters. use '' instead of "" if needed.
speedi Posted April 10, 2009 Author Posted April 10, 2009 Try this. RunWait("powercfg.exe /change ""home/office desk"" /monitor-timeout-ac 5")Great! Thanks! Looks a lot simpler than what I did!!!! sure do appreciate your help!
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