Diode Posted October 31, 2008 Posted October 31, 2008 I have been automating the use of a third party software. The main form in the software has some buttons. When you click on the button I need, a second form opens up. This second form has a start "checksum" button, and after pressing the button the form makes visible a text label on top of a "status bar". When done the result of the check sum is written to the text label above the status bar. I need to get this check sum but AutoIt V3 Window Info does not see the result or as a matter of fact any of the text in this label. The Window Info does highlight the text label and outputs the following, keep in mind that the text label says: "Check Sum = FEE4E1B9">>>> Window <<<<Title: Checksum FlashClass: QWidgetPosition: 1497, 300Size: 392, 274Style: 0x96C00000ExStyle: 0x00000100Handle: 0x001B067C>>>> Control <<<<Class: QWidgetInstance: 3ClassnameNN: QWidget3Advanced (Class): [CLASS:QWidget; INSTANCE:3]ID: Text: FlashProgrammerPosition: 80, 144Size: 119, 13ControlClick Coords: 60, 7Style: 0x56000000ExStyle: 0x00000000Handle: 0x001E0B8A>>>> Mouse <<<<Position: 1640, 480Cursor ID: 2Color: 0xECE9D8>>>> StatusBar <<<<>>>> Visible Text <<<<FlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammer>>>> Hidden Text <<<<FlashProgrammerThe whole form according to Window Info provides:>>>> Window <<<<Title: Checksum FlashClass: QWidgetPosition: 590, 251Size: 392, 274Style: 0x96C00000ExStyle: 0x00000100Handle: 0x001B067C>>>> Control <<<<Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x00170642>>>> Mouse <<<<Position: 822, 274Cursor ID: 2Color: 0x026AFE>>>> StatusBar <<<<>>>> Visible Text <<<<FlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammerFlashProgrammer>>>> Hidden Text <<<<FlashProgrammerAny ideas on how to get the value of the text label. I have tried a couple of things but they normally return "". The computer will not have Microsoft Word. Thank you for your help in advance
Pain Posted October 31, 2008 Posted October 31, 2008 It's a QWidget control (non standard API). Try with ControlGetText() but it will most likely give you wrong result. So unfortunately OCR is the only way.
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