Jump to content

Retrieves integer values from a control ? ControlGetText dont does is !


 Share

Recommended Posts

Hello great minds , sorry my english is bad, ok the problem is next i need obtain a value from a control ( textbox ) but he contain a numeric value, the only funtion in AutoIt to get value from a control is ControlGetText but is only for text, please i need a idea to find a solution to my problem, thanks

Virgilio Cane

Link to comment
Share on other sites

Hello great minds , sorry my english is bad, ok the problem is next i need obtain a value from a control ( textbox ) but he contain a numeric value, the only funtion in AutoIt to get value from a control is ControlGetText but is only for text, please i need a idea to find a solution to my problem, thanks

Virgilio Cane

$i = Number( ControlGetText($WinTitle, $WinTxt, $ControlID) )

<_<

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

i found the solution thanks for everything

whit this capture the value fron a textbox with integer value

ControlGetText ( "windows name", "","[CLASS:classname; INSTANCE:instancenumber]")

whit this capture only the text value

ControlGetText ( "windows name", "", "[iD:idnumber]")

Remenber use Autoinfo to get info about the control like class name an instances

Link to comment
Share on other sites

i found the solution thanks for everything

whit this capture the value fron a textbox with integer value

ControlGetText ( "windows name", "","[CLASS:classname; INSTANCE:instancenumber]")

whit this capture only the text value

ControlGetText ( "windows name", "", "[iD:idnumber]")

Remenber use Autoinfo to get info about the control like class name an instances

Uhmmm... so, when you speak of text or number you mean the ID of the control, not the data in it...?

<_<

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...