View Single Post
  #2 (permalink)  
Old 06-28-2007, 11:05 AM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Do you rreally mean url or html source code of that web page?

If you mean url then you have two options. You can capture screenshot of the desktop from Java. You can do that and if your web browser is opened, you can extract the url from thie image with image processing. Obviously a difficult way.

Another way can be to use windows APIs to obtain the url of opened web pages. I guess Windows should have such API calls. But to be able to use those calls, you will need to develop Java wrappers for those methods. You might search for APIs for that since someone might have already developed a wrapper.

Good luck.
Reply With Quote