PaulRathbone Posted February 2, 2015 Share Posted February 2, 2015 I have a program I'm trying to automate. I have hit a problem with my updown control though. When the form opens, the control has a default value of 6 and a range of 0-24. I can change it to (for example) 0 by doing this. ;Set Rate to 0 ControlFocus("London Control - Log On","","[CLASS:TEdit; INSTANCE:2]") For $x = 1 To 6 Send("{DOWN}") Next I wonder if there's a more elegant way to write a value? GuiCtrlSetData doesn't work. If the worst comes to the worst I'll write a function that accepts my value to write and do what's in the code snippet above, first doing 24 {DOWN}s to zero it. Can't help but think I'm missing something. Thanks, Paul. Link to comment Share on other sites More sharing options...
Zedna Posted April 14, 2015 Share Posted April 14, 2015 (edited) If it's standard Up/Down control then I would start here at Up/Down MSDN documentation https://msdn.microsoft.com/en-us/library/windows/desktop/bb759880%28v=vs.85%29.aspx https://msdn.microsoft.com/en-us/library/windows/desktop/bb759889%28v=vs.85%29.aspx Edited April 14, 2015 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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