Jump to content

Another question


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
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"

Link to comment
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
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...