Forum Discussion
madhavisri01
14 years agoContributor
Hello David,
I am planning to read the file as Ini file.I will pass the recognition string to the script something like this in jscripting
//Data file
[Mainwindow]
Canvas application =Sys.Process("MyApp").Window("#32770", "Window
Caption").Window("MyContainerClass", "", 1).Window("MyPanelClass",
"Canvas Panel")
Addbutton =Sys.Process("MyApp").Window("#32770", "Window
Caption").Window("MyContainerClass", "", 1).Window("MyPanelClass",
"Canvas Panel").Window("Button", "Add")
[/]
if(dReader[Mainwindow].Canavas application).exists==true)
{
Log.message("Application exists");
}
else
{
Log.error("Application is not available");
}
Customer is not comfortable with name mapping.They wanted to maintain recognition strings in separate file.Please let me know if this is the right approach and help me with the code.Thanks for your help in advance.
Madhavisri
I am planning to read the file as Ini file.I will pass the recognition string to the script something like this in jscripting
//Data file
[Mainwindow]
Canvas application =Sys.Process("MyApp").Window("#32770", "Window
Caption").Window("MyContainerClass", "", 1).Window("MyPanelClass",
"Canvas Panel")
Addbutton =Sys.Process("MyApp").Window("#32770", "Window
Caption").Window("MyContainerClass", "", 1).Window("MyPanelClass",
"Canvas Panel").Window("Button", "Add")
[/]
if(dReader[Mainwindow].Canavas application).exists==true)
{
Log.message("Application exists");
}
else
{
Log.error("Application is not available");
}
Customer is not comfortable with name mapping.They wanted to maintain recognition strings in separate file.Please let me know if this is the right approach and help me with the code.Thanks for your help in advance.
Madhavisri
Related Content
- 6 years agoAdagio