AlexR Posted March 5, 2008 Share Posted March 5, 2008 (edited) Hello! I would like to get the text of a textbox. I used the function ControlGetText, but this function didnt return always a string. e.g. my Textbox is empty I get null string with the follow command: ControlGetText(myForm, , ID_of_TextBox) What is the second parameter for? If my textbox contains something I can use some first letters at the second parameter to get the complete text. Have someone an explanation for me? Im little confuse Best regards, Alex Edit: Have this function known issues with Controls like Infragistics.Win.UltraWinEditors.UltraTextEditor? (Just a TextBox from Infragistics) Edited March 5, 2008 by AlexR Link to comment Share on other sites More sharing options...
Aassdd Posted March 5, 2008 Share Posted March 5, 2008 It's the visible text of the window that autoit will search for but you can leave it empty if there's only 1 window with the same name in your taskbar. Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 5, 2008 Share Posted March 5, 2008 If another window with the same title exists, and the text is blank, it will match the last one that was active. Link to comment Share on other sites More sharing options...
AlexR Posted March 6, 2008 Author Share Posted March 6, 2008 thanks, but my problem is that the function doesn't return any string. The parameters should be okay, because the function controlgethandle works fine with the same parameters and return the right handle Link to comment Share on other sites More sharing options...
Aassdd Posted March 6, 2008 Share Posted March 6, 2008 (edited) Can you post a screenshot of the window you want to get text WITH autoit window info (and "control" tab selected) please. Edited March 6, 2008 by Aassdd Link to comment Share on other sites More sharing options...
AlexR Posted March 6, 2008 Author Share Posted March 6, 2008 np, here is the screenshot. HTH Link to comment Share on other sites More sharing options...
Aassdd Posted March 6, 2008 Share Posted March 6, 2008 Had this problem few days ago http://www.autoitscript.com/forum/index.ph...c=65618&hl=Don't know if it helps you. Link to comment Share on other sites More sharing options...
AlexR Posted March 6, 2008 Author Share Posted March 6, 2008 (edited) no it doesn't help. I think autoIT doesn't work with infragistic controls ... Edited March 6, 2008 by AlexR Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 6, 2008 Share Posted March 6, 2008 AutoIt (as well as most other simulation programs) will have issues with .Net forms because the controls get rendered differently some times due to the runtime processes. Look for something called like, AnyWindow or something like that on this forum. I remember seeing it but I can't remember the name. 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