• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use Java to see what URLs are currently Open in the browser ?  RSS feed

 
Ray mann
Ranch Hand
Posts: 48
Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys , I have built a small program to open a URL in a browser. I would like to be able to have the program check the current open browser tabs for their URLs. My intention is to check for URL match and if the URL attempting to be opened is already currently open I will either close the current open version or ask the user " Are you sure you want to open a duplicated tab? "

Is this possible and if it is could any one point me in the right direction or show me an example? I just cant seem to find anything online that points in this direction,then again maybe my GoogleFoo aint up to scratch.

Thanks in advanced!!





 
Paul Clapham
Sheriff
Posts: 22509
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use a Java application to spy on other applications open on the user's machine.
 
Ray mann
Ranch Hand
Posts: 48
Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thanks for the reply, so this is not possible? That's sad...Well if this is true, is it possible to use VBS within a Java or to pass info from VBS to a Java app? As I have seen this browser URL check done with VBS. Any advice and help would be Awesome! Thanks in advance.
 
Paul Clapham
Sheriff
Posts: 22509
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really sad; you're looking at it from the point of view of your interests but not from the point of view of malware writers. Java applets finally died because they couldn't get security right.

I didn't mention the possibility of using native code. You can do anything you like with native code, at least anything the operating system supports, but it's not exactly "Java". So yes, you might be able to google up a Java-VBS interface which would probably use native code for its implementation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!