Virgilio Posted November 6, 2007 Share Posted November 6, 2007 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 More sharing options...
PsaltyDS Posted November 6, 2007 Share Posted November 6, 2007 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, thanksVirgilio 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 More sharing options...
Virgilio Posted November 6, 2007 Author Share Posted November 6, 2007 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 More sharing options...
PsaltyDS Posted November 7, 2007 Share Posted November 7, 2007 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 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