cazulp Posted July 26, 2011 Share Posted July 26, 2011 I am a newbie to AutoIt so bear with me. I am automating all our Corporate security settings for Windows 7 and have found it extremely challenging. One of the settings I have automated is the screen saver wait time. I am using the Send function but cannot send a value greated than 9 when I really need it to be 10(sending 10 gives an execution error as its treated as non-numeric). See below for some of the code. Send("!w") ; position at Wait time setting Sleep(1000) Send("{9}") ; apply value Any ideas as to how I can send 10, or greater if need be, would be much appreciated Link to comment Share on other sites More sharing options...
Developers Jos Posted July 26, 2011 Developers Share Posted July 26, 2011 Why do you use "{9}" in stead of "9" in the send command? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
cazulp Posted July 26, 2011 Author Share Posted July 26, 2011 Not sure why, just thought it was that way. Thanks a ton for the help, now I can send any value I want. 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