Thank you for the reply. Yeah I have tried that but the pane count remains constant through out the process it is not changing ....I am posting the code ...please let me know if any thing can be done.
I have posted the screenshot of the result with this code. Thank you.
function getStatusText()
{
var StatusBar=Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("_statusBar");
var Text=StatusBar.wItemBounds(1).Width;
var StopWatch=HISUtils.StopWatch;
Test1();
Delay(1000);
StopWatch.Start()
var StatusBarPane=StatusBar.wPartCount;
Log.Message(StatusBarPane); //Status pane count before starting
Log.Message("...............");
while(StatusBarPane>2) // I know it is not the appropriate condition but I have put this just to chek the pane count before and while running
{
Delay(100);
Log.Message(StatusBarPane); // Status pane count while running
}
StopWatch.Stop();
Log.Message(StopWatch.ToString());
Delay(2000);
Log.Message(Text.Width);
}
function Test1()
{
var central;
central = Aliases.Central;
central.MainForm.ztopSandBarDock.zmenuBar.Keys("~Ba");
var ButtonYes=Sys.Process("Central").Window("#32770", "SoMachine Logic Builder", 1).Window("Button", "&Yes", 1);
ButtonYes.ClickButton();
}