| || |
How to activate the close button in second window
I am trying to open a executable file which brings main page along with small window with some data. This small window has close and cancel button and I have the following code below but would like to know how i can activate this( would like to close the smaller window first and then close the main window.
Note: if i click alt fc it closes the smaller window.
Thank you for your help in advance
SystemUtil.Run "C:\Program Files\test\test.exe","","C:\Program Files\test\","open"
Window("Test at Oct 31, 2010").Window("Product/Universe Selection").Activate
<font color="red"> </font>'getting error at this line as object is disabled and this is second window which has Close button.
Window("PALTrak at Oct 31, 2010").Window("Funds").AcxTable("True DBGrid Control").SelectCell 1,3
Re: How to activate the close button in second window
i can think of the following 2 options. Just give a try
1. Window("Product/Universe Selection").Activate/Restore/Maximise
2. Try an capture the child objects of the parent window and the close the child window. This should work.