bestsmr Posted November 22, 2014 Share Posted November 22, 2014 Hello every body; I use "Autoit info tool" to get information aboat specific control , the text that I get is different from I see on screen ; as shown in image : My quation is : Why? How I can pass this problem? thanks Link to comment Share on other sites More sharing options...
binhnx Posted November 22, 2014 Share Posted November 22, 2014 Yes, it's different, but i don't think it's wrong! Why? Like many automation applications, the AutoIt Info only support standard Windows control. DotNET controls is not standard, but customized controls. In most situation, the .NET controls should behave like a standard, but in some case, like your, it's not. The .NET controls store its text internal, so any attemp to retrieve it using WinAPI function, like GetWindowText - which is used in AutoIt Info - fails. Because it get the text which Windows store, not .NET, but the .NET control using the internal text to draw value. Instead of the current text, the value you get is the initial value of the control. How? I think with this problem, you are out of luck. Considering using .NET instead of AutoIt. 99 little bugs in the code 99 little bugs! Take one down, patch it around 117 little bugs in the code! Link to comment Share on other sites More sharing options...
LarsJ Posted November 22, 2014 Share Posted November 22, 2014 bestsmr, Have you tried with the UI Automation framework? Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions 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