Jump to content

Updown control woes


 Share

Recommended Posts

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

  • 2 months later...
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...