armyman Posted March 6, 2011 Share Posted March 6, 2011 Hello all, I am trying to extract the an integer value for a window as shown in the attachment. I have been able to extract it as a text value. But I need to be able to extra it as an integer value so that I can manipulate it. Any help would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
funkey Posted March 6, 2011 Share Posted March 6, 2011 AutoIt uses variant type for the variables. Therefore you don't need to convert it explicit to an integer, but you can do it like this: $Integer = Int($String) Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
armyman Posted March 6, 2011 Author Share Posted March 6, 2011 Thanks for your reply. I think I may be referencing the wrong location to pull the value from. I am able to get to the specified location and change the value if needed. But I still dont know which command to use to pull the value from the box. The MsgBox is just to check the value that is returned, which returns 0 no matter what number is in the box. WinWaitActive("Account lockout threshold Properties") $Integer = WinGetText("Account lockout threshold Properties") $Integer = int($Integer) MsgBox(0, "", $Integer) Link to comment Share on other sites More sharing options...
funkey Posted March 6, 2011 Share Posted March 6, 2011 Have a look at ControlGetText and the AutoIt Window Info tool coming with AutoIt. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
armyman Posted March 6, 2011 Author Share Posted March 6, 2011 Thanks for the reply, it took me a little while to figure it out but it looks like that should do it. 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