Jump to content

Help with checking/editing Window Edit fields


Recommended Posts

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

post-41841-1223995831_thumb.jpg

Edited by rocksolidsr
Link to comment
Share on other sites

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

post-41841-1223995831_thumb.jpg

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. :P

Link to comment
Share on other sites

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. :P

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

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 "".

Link to comment
Share on other sites

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

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...