Examiner Posted April 12, 2007 Share Posted April 12, 2007 Is there a way to read the boxes that are present in a pop up window. What I am doing is creating a program to install software. At a certain point it needs to make sure that the fields are correct. they are fields that are changeable by the user. But they come automatically populated. I suppose that I could just have it overwrite what is already populated. But I was wondering if there was a way to read those fields and perhaps have them output into a msgbox when the script has finished running.The fields are Server Port 5124Timecode Port 22500Driver Media Directory blahThe input that the program would need to read is in bold.Any help would be appreciated. I have been roaming around this site and the help files for a while and couldn't find anything pertinent yet. Link to comment Share on other sites More sharing options...
Wolffe Posted April 12, 2007 Share Posted April 12, 2007 Sorry, that post was from me. As you may have guessed. I was using Autoit 123 to see if there was anything in there that might pertain to my predicament. Thanks Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 12, 2007 Share Posted April 12, 2007 (edited) Easy to do with ControlGetText(). Us the AutoIT Windows Info Tool to get the ControlID or ClassNN name of the controls involved. Textual formatting, such as bold or italics, are ignored with that function. Edited April 12, 2007 by PsaltyDS 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...
Wolffe Posted April 12, 2007 Share Posted April 12, 2007 I think that I might have garbled my question. Now that I re-read your answer. The text that I want to read is not in bold in the window that I want to read it from. I put it in bold above to illustrate which text I was going to be reading. It is actually in an input box. Beside the titles "Server Port" "Timecode Port" and "Driver Media Directory" Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 12, 2007 Share Posted April 12, 2007 I believe the answer is the same. Use ControlGetText() to get the text from the input box, and then parse out what you want from the resulting text string. 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...
Wolffe Posted April 12, 2007 Share Posted April 12, 2007 (edited) Perfect That did it. Thanks for your patience. I am still pretty new to Autoit. But I am liking it quite a bit. Again, thanks for the help and patience. Edited April 12, 2007 by Wolffe 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