Sign in to follow this  
Followers 0
Examiner

Another question

6 posts in this topic

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 5124

Timecode Port 22500

Driver Media Directory blah

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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.

:shocked:

Edited 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

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

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.

:shocked:


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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Perfect :shocked: 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 by Wolffe

Share this post


Link to post
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
Sign in to follow this  
Followers 0