Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating an existing application/window via Javascript

Status
Not open for further replies.

Rock6431

Programmer
Mar 23, 2002
56
US

I am rather skilled at VB and enumerate the windows on the screen looking at either the class or caption to locate another applications window handle. Using the handle I can give that application focus and work via automation.

I have been searching various Java related websites in hope of finding a similar example of how to do this in Java. Anyone have something similar to what I am needing in Java?

Thanks in advance.
Mike
 
hi Mike,

i don't think this is possible in js...references to windows are only kept per window instance, and only if you create them, meaning you can only reference your current window and any you make from it (using open();) during the parent window's lifetime. if you refresh the parent window, all references are reset.

=========================================================
if (!succeed) try();
-jeff
 
It's true...can't be done. What you are trying is an example of why MS in so open for viruses. That is why Javascript prohibits access.

Kev.
[Afro2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top