Forum Discussion
YMinaev
Staff
15 years agoHi,
Since you're using a VB 6 application, there's no need to use MSAA. VB 6 applications are Open by default. This means that TC has access to all native members which belongs to classes of controls used in your application. These members (properties, methods and fields) are those accessible in VB 6, developers use them to interact with controls in applications they create.
To work with the target controls in TC, you can use the same approach which you'd use in your application to do the same things (for example, item the data stored in a control, etc.). You just need to obtain the control you want to work with (it will be shown in the Object Browser where you can see its full name and properties and capture it from the screen by using the mouse pointer) and call its methods or get/set its property values.
To check whether your application is recognized as Open, you just need to start it and expand its process's node in the Object Browser. If you see objects named as 'VBObject(something)', your application is recognized as Open. Otherwise, check whether the Visual Basic Open Applications plug-in is enabled in the 'File | Install Extension...' dialog. If there's no such plug-in, launch TC's installer in Modify mode and make sure that open-app support is enabled in the list of installed features.
This is what I recommend doing first.
Since you're using a VB 6 application, there's no need to use MSAA. VB 6 applications are Open by default. This means that TC has access to all native members which belongs to classes of controls used in your application. These members (properties, methods and fields) are those accessible in VB 6, developers use them to interact with controls in applications they create.
To work with the target controls in TC, you can use the same approach which you'd use in your application to do the same things (for example, item the data stored in a control, etc.). You just need to obtain the control you want to work with (it will be shown in the Object Browser where you can see its full name and properties and capture it from the screen by using the mouse pointer) and call its methods or get/set its property values.
To check whether your application is recognized as Open, you just need to start it and expand its process's node in the Object Browser. If you see objects named as 'VBObject(something)', your application is recognized as Open. Otherwise, check whether the Visual Basic Open Applications plug-in is enabled in the 'File | Install Extension...' dialog. If there's no such plug-in, launch TC's installer in Modify mode and make sure that open-app support is enabled in the list of installed features.
This is what I recommend doing first.