Animare Posted March 31, 2021 Share Posted March 31, 2021 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! Link to comment Share on other sites More sharing options...
Danp2 Posted April 1, 2021 Share Posted April 1, 2021 Change "Uniform" to "" and it should work. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Animare Posted April 1, 2021 Author Share Posted April 1, 2021 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? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted April 1, 2021 Share Posted April 1, 2021 (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 April 1, 2021 by FrancescoDiMuro Musashi 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette 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