MS Common Control and VB Extension Connector
(Available from version 7.0 onwards.)
Automation Studio is designed to provide powerful and reliable screen element capturing from applications that are based on Visual Basic 6.0.
The MS Control Common and VB connector is a sub-connector (an extension) of the Win32 connector.
Connector Features
The built-in MS Common Control and VB Extension Connector provides the following features:
-
Capture any object in Visual Basic 6.0 applications
-
Support for 32-bit and 64-bit architecture
-
Support for multiple instances to allow you to select which of multiple instances of a target to capture, for example, the instance in focus
Configure the Connector
No configuration is required for the MS Common Control and VB Extension Connector. This connector is enabled by default.
Capture a Screen Element
The procedure for capturing a screen element from a Visual Basic 6.0 application is the same as for all screen elements. See Capture a Screen Element.
Edit a Screen Element
The Edit Screen Element window opens after capturing a screen element. This screen allows you to customize how the screen element is treated and identified. See Edit a Screen Element.
Information specific to Virtual Basic application screen elements is provided below.
Element Hierarchy
The element hierarchy for a captured Visual Basic application element is as follows:
-
Root branch for the process
-
MS Common Control DB Form element, representing the form on which the captured element is located
-
The screen element you captured.
-
-
See View the Element Hierarchy.
Screen Element Types Supported
The screen element type values available differ between levels in the hierarchy.
Type |
Screen Element Types |
---|---|
MS Common Control and VB Screen Elements |
|
MS Common Control and VB Form |
|
MS Common Control and VB Process |
|
Recognition Properties Supported
The recognition properties available differ between levels in the hierarchy. These are identical as for WIN32 screen elements.
Property |
Description |
---|---|
My Window Class Name is | The name of the class to which the specified physical object belongs (for example, BUTTON). |
My Window Children Count is | The number of child objects. |
My Window Visibility is |
Identifies a window based on its visibility. When the window is visible, the physical object is recognized. When the window is hidden, the physical object is destroyed until the window becomes visible again. |
My Window Relative Location is | Identifies a window based on the location of its parent window. The format for this property's value is YYYYXXXX, where YYYY indicates the Y offset and XXXX indicates the X offset (including a leading zero) from the parent window. For example, the 00640078 value (see the screenshot above) indicates that the window location has an offset of (0064,0078) from its parent window. |
My Window Width is | Window width in pixels. |
My Window Height is | Window height in pixels. |
My Window Child Id is | The window ID. |
My Window Z Order is |
The window position in a stack of overlapping windows. A window stack is oriented along an imaginary axis, the z-axis, extending outward from the screen. The window at the top of the z-order overlaps all other windows. The window at the bottom of the z-order is overlapped by all other windows. When an application creates a window, the system puts it at the top of the z-order for windows of the same type. You can change the z-order by activating a different window. The system positions the active window at the top of the z-order for windows of the same type. When a window comes to the top of z-order, so do its child windows. |
My Window Class Z Order is | The class of the window’s position in a stack of overlapping windows. |
My Window Name is | A window name where Win32 physical object is hosted. |
My Window Accessible Name is |
Provides accessibility support. Accessibility support enables you to identify a given screen element and to activate its default action. For example, for a button, the default action is to click the button. This feature is ideal when you have a Win32 application that has a control whose functions you cannot invoke using standard Win32 functions (for example, GUI libraries in which vendors have implemented extensions to Win32 functionality by creating additional buttons). Custom buttons created in this manner may not support a Win32 click function, thus limiting Real-Time Designer's ability to recognize them as buttons. In such cases, you can use accessibility options to generate a click event, whereas otherwise you could not. |
My Child Window Class Name is | Gets the name of the class, to which the child object belongs. |
My Child Window Name is | Indicates having a child with specified name. |
My Child Window Accessible Name is | Indicates having a child with specified accessible name. |
My Child Window Child Id is | Indicates having a child with this ID. |
My Child Window Children Count is | Indicates having a child with defined children count. |
Property |
Description |
---|---|
My Process Name is | The process name of the Win32 application in the process tree. You can use the Process Explorer utility (or the Windows Task Manager) to verify the name of the process. |
My Process ID is | The ID issued by the operating system to uniquely identify an active process. For example, a text box control. |
My Process Level is | The level of the process in the process tree. Enables you to handle scenarios where applications have more than one process on different levels. You can use the Process Explorer utility to verify the process level. |
My Parent Process Name is | The name of the parent process (if such process exists). |
My Parent Process Name is not | The name of the process, which can’t be a parent process (the process one level higher). |
Main Relation Type
The element's main relation type is displayed in the Edit Screen Element window, but cannot be changed.
This section is not displayed for the MS Common Control and VB process.
See Identify an Element's Main Relation Type.
Multi Instance Support
The MS Common Control and VB connector provides support for multiple instances.
You can specify which instance of the application to relate to if multiple instance of the same application are open.
Multi instance support differs between levels in the hierarchy.
Type |
Multi Instance Support |
---|---|
MS Common Control and VB Screen Element | Optional, inactive by default. |
MS Common Control and VB Screen Form |
Optional, inactive by default. |
MS Common Control and VB Screen Process |
Active by default, cannot be deactivated. |
See Set Multi Instance Behavior
Screen Element Assets
Each screen elements has its own properties, functions, and events. These are visible in the Assets Panel.
For information on screen element assets, see here.
Monitor Screen Elements in Debug Mode
When in debug mode, you can view and modify the values of a screen element's properties.
In the example below, the rows from the ListView screen element are assigned to the ListView variable. The contents of those rows can be monitored during debug.