Forum Discussion
iamraj09
11 years agoContributor
Hi Colin,
Thank you for the reply ....actually i didnt get you ....can you help me out with the example ..??
Because I have tried something similar to this before .....
while(!Central_StatusBar.Enabled) // Checking whether the status bar is enabled or not ....
{
Delay(500);
Log.Message("Status_Bar no enabled...yet..!!")
}
if(Central_StatusBar.Enabled){
while(!Central_Menu_bar.Enabled) // Checking whether the menu bar is enabled or not ....
{
Delay(1000);
Log.Message("Menu_Bar no enabled...yet..!!");
}
}
// And here, once the menu bar is active i am trying to click the button ...
LogicBuilder_Button=Sys.Process("Central").WPFObject("HwndSource: mainWindow").WPFObject("mainWindow").WPFObject("LayoutRoot").WPFObject("headerBar").WPFObject("LayoutRoot").WPFObject("Grid", "", 1).WPFObject("ContentControl", "", 1).WPFObject("DockPanel", "", 1).WPFObject("ScrollViewer", "", 1).WPFObject("StackPanel", "", 1).WPFObject("ItemsControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("SEDropDownButton", "", 1).WPFObject("StackPanel", "", 1).WPFObject("TextBlock", "Logic Builder", 1);
LogicBuilder_Button.Click(35,7); // Trying to click the button .....
Central.WaitWindow("*", "*.project - SoMachine Logic Builder - V4.1 (Administrator)", -1, 1000000); // Waiting for this window to pop up.....
Delay(2000);
Thank you for the reply ....actually i didnt get you ....can you help me out with the example ..??
Because I have tried something similar to this before .....
while(!Central_StatusBar.Enabled) // Checking whether the status bar is enabled or not ....
{
Delay(500);
Log.Message("Status_Bar no enabled...yet..!!")
}
if(Central_StatusBar.Enabled){
while(!Central_Menu_bar.Enabled) // Checking whether the menu bar is enabled or not ....
{
Delay(1000);
Log.Message("Menu_Bar no enabled...yet..!!");
}
}
// And here, once the menu bar is active i am trying to click the button ...
LogicBuilder_Button=Sys.Process("Central").WPFObject("HwndSource: mainWindow").WPFObject("mainWindow").WPFObject("LayoutRoot").WPFObject("headerBar").WPFObject("LayoutRoot").WPFObject("Grid", "", 1).WPFObject("ContentControl", "", 1).WPFObject("DockPanel", "", 1).WPFObject("ScrollViewer", "", 1).WPFObject("StackPanel", "", 1).WPFObject("ItemsControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("SEDropDownButton", "", 1).WPFObject("StackPanel", "", 1).WPFObject("TextBlock", "Logic Builder", 1);
LogicBuilder_Button.Click(35,7); // Trying to click the button .....
Central.WaitWindow("*", "*.project - SoMachine Logic Builder - V4.1 (Administrator)", -1, 1000000); // Waiting for this window to pop up.....
Delay(2000);