Forum Discussion
arijken
9 hours agoOccasional Contributor
So there is no way to click a random menu item en get access to the window opened?
Does this mean that I have to map every menu item to the window object it opens?
I want a generic script that click a menu item and on the opened form I like to click some buttons It seems that my idea is not possible
- rraghvani8 hours ago
Champion Level 3
If you know the Object Hierarchy of your application, as shown in the Object Browser. Then it's possible to get the object in question, without using Name Mappings.
The object obj.WinFormsObject("Form2"), is shown for the Form.You can use the property Exists, to check whether the Form object exists e.g. obj.WinFormsObject("Form2").Exists.
The example codes I have provided, don't use name mappings, it's all object based.