Jump to content

Recommended Posts

Posted

Hi all, 

Still fairly new but from my research I think my code is right just not sure why its not pulling anything. I'm trying to use the following code, to extract from the form as in the image.

Global $Texstore = ControlGetText("Zoom","UniForm","Edit1")
MsgBox(0,"",$Texstore)

Any help appreciated!

info_help.JPG

Posted

Awesome thank you that worked? Sorry can I ask the logic behind this of why the blank was required instead of the name of the Class?

Posted (edited)

@Animare

That's because "UniForm" is the class of the Window, and the "text" parameter doesn't allow a classname.

From the Help file about the "text" parameter:

Window Text

The window text consists of all the text that AutoIt can "see". This will usually be things like the contents of edit controls (as above with "This is some text!") but will also include other text like:

  • Button text like &Yes, &No, &Next (the & indicates an underlined letter)
  • Dialog text like "Are you sure you wish to continue?"
  • Control text
  • Misc text - sometimes you don't know what it is :)

EDIT:

Then, if you look in the Help file about ControlGetText() function, where do you see that "text" parameter wants a classname?

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...