rocksolidsr Posted October 14, 2008 Share Posted October 14, 2008 (edited) I'm trying to edit two fields in a window and I was wondering if it is possible to check to see what those fields are currently and if they are not equal to 20000 then change them to 20000. I have used the window spy to identify the edit fields their controlid's are Edit4 and Edit6. I'm very new to autoit and I know this should be possible, but just can't seem to find out how to do it. I have attached a picture of what I'm trying to edit. Thanks Edited October 14, 2008 by rocksolidsr Link to comment Share on other sites More sharing options...
Szhlopp Posted October 14, 2008 Share Posted October 14, 2008 I'm trying to edit two fields in a window and I was wondering if it is possible to check to see what those fields are currently and if they are not equal to 20000 then change them to 20000. I have used the window spy to identify the edit fields their controlid's are Edit4 and Edit6. I'm very new to autoit and I know this should be possible, but just can't seem to find out how to do it. I have attached a picture of what I'm trying to edit. Thanks Use the "Control" functions in the help file. They enable you to change them values without having to move the mouse and manually click on stuff. Also, there is a tool called "AutoIt Window Info" that you can find in your AutoIt folder(Start menu) that will help you a lot. RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
rocksolidsr Posted October 14, 2008 Author Share Posted October 14, 2008 Use the "Control" functions in the help file. They enable you to change them values without having to move the mouse and manually click on stuff.Also, there is a tool called "AutoIt Window Info" that you can find in your AutoIt folder(Start menu) that will help you a lot. I can already change the values but I need to make sure that they were actually changed to 20000, so I need a way to store the original value into some type of variable and check to make sure that it is equal to 20000 Link to comment Share on other sites More sharing options...
Szhlopp Posted October 14, 2008 Share Posted October 14, 2008 I can already change the values but I need to make sure that they were actually changed to 20000, so I need a way to store the original value into some type of variable and check to make sure that it is equal to 20000 Help file: ControlGetText -------------------------------------------------------------------------------- Retrieves text from a control. ControlGetText ( "title", "text", controlID ) Parameters title The title of the window to access. text The text of the window to access. controlID The control to interact with. See Controls. Return Value Success: Returns text from a control. Failure: Sets @error to 1 and returns a blank string of "". RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
rocksolidsr Posted October 14, 2008 Author Share Posted October 14, 2008 Help file: ControlGetText -------------------------------------------------------------------------------- Retrieves text from a control. ControlGetText ( "title", "text", controlID ) Parameters title The title of the window to access. text The text of the window to access. controlID The control to interact with. See Controls. Return Value Success: Returns text from a control. Failure: Sets @error to 1 and returns a blank string of "". i knew had to be something easy, thanks 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