How to identify Object type in Object Mapping
I have an application which requires me to peform automation to adjust the volume knob UI. The control is activated by dragging the mouse pointer over manualy. I tried to get the properties of the control using Object Browser, but I can't find any useful value which can allow me to adjust the turning position of the knob.
I'm think of using Object Mapping feature in TC5, but how do I know which Obj Type does it belongs to? [img]/images/graemlins/confused.gif[/img]
<font class="small">Code:</font><hr /><pre>Call Sys.Process("ConsoLCu").Window("#32770", "Entertainment Mode").Window("RtxFrame").Window("Theme_DialCtrl_C lass", "", 3).Drag(53, 57, 39, -8) </pre><hr />
Re: How to identify Object type in Object Mapping
If your application is not an Open application, TestComplete cannot access native methods and properties of custom objects. You cannot use the Object Mapping feature either since this control is not a standard Win32 control. You can try mapping the control as a scroll bar or a track bar, but I am not sure that this will help.
Also, you can try using the MSAA extension. Perhaps, you will find useful values in the properties added by this plug-in if the control implements the IAccessible interface. To do this, add the 'Theme_DialCtrl_Class' value to the list of MSAA windows in the MSAA group of the project's options dialog.