• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

An Applet that can open a running MS-Paint window and take screen shot?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement where, I have an HTML page with a submit button. On click of this button an applet should run and it has to take the screen-shot of a Microsoft Paint window or any other MS application window, and then save the screen-shot as .bmp in local file system.

Hard coding is allowed on the Button click. For eg. Open the MS-Paint window with Title = "xyz".

I know how to take screen shot using Applet. But, I don't know how to bring the MS-Paint application in focus using Applet or Java code or JavaScript on click of Submit button? Is this possible or not?

Please help. Its bit urgent.
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems rather complicated. What does the applet accomplish that hitting the "Print Screen" button (and subseqeunt saving of the image) would not?

Regardless, if the applet is to access the local file system, then it needs to be signed.
 
Rajnikant Katre
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:Seems rather complicated. What does the applet accomplish that hitting the "Print Screen" button (and subseqeunt saving of the image) would not?

Regardless, if the applet is to access the local file system, then it needs to be signed.




Thanks for your reply Tim.
In order to access the local file system (for saving the screen-shot) we have modified the java.policy file with necessary permissions.

I just need to figure out how Java code can bring into focus an already running Microsoft application (MS Paint, MS Word, etc) on click of a button on HTML page.
Is it doable?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
vaibhav kumbhar,
Your post was moved to a new topic.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic