Forum Discussion
My application is called Match.
When I try activeForm = Aliases.Match.ActiveWindow(); and try to find the name of the active window I get "Non-existent object"
when I use sys.Desktop.activewindow I get the correct name of the widow that is open.
because I don't know the name of the window that should be open when I click a menu item I cannot use the name to get the correct active window
My problem is that after I click a menu item I want to access to the opened window so in your example the window that is open after wndNotepad.MainMenu.Click("File|Open...");
I hope this explains my problem better.
You should be accessing your application using the Process method like so,
function Example()
{
var match = Sys.Process("match");
var wndMatch = match.Window("Match");
match.MainMenu.Click("File|Open...");
}
You need to ensure that your have access to your application first, before attempting to interact with it.
Notepad is visible in Object Browser, and it can be accessed via Sys.Process("Notepad")