How to take a screen shot using Java

I'd like to get a screenshot while a user is playing a game such as Quake or Half-life. Is this at all possible using Java or do I have to stupe to using OS dependent functions?
Matt

In SDK 1.3 there's a createScreenCapture method in the java.awt.Robot class.

Similar Messages

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I forgot how to take a screen shot on my iMac

    I forgot how to take a screen shot on my iMac
    Can someone please remind me?
    Thank you

    If you want a certain area:
    Command + Shift + 4 > use the cursor to define the area
    Command + Shift + 3 > does the entire screen

  • In power mac g5, how to take Automatic Screen Shot with Date

    in power mac g5, how to take Automatic Screen Shot with Date ?
    please help me

    If you are standing by, and activating the process by keyboard
    you could be sure to include the open Date Time menu bar
    image in a complete screenshot, using cmd shift 3. Or outline
    the area you want if not full-screen, by using cmd shift 4.
    The command button may also have an apple icon on it.
    So that's the three key shortcuts for full & partial screen.
    For a more automated method, perhaps try using software to
    run an AppleScript, like Automator. Then write a script or find
    one that you can modify to do tasks and test it.
    There may be other methods, however identifying your intent
    would be higher on the list at this time; to narrow the method.
    Good luck & happy computing!

  • How to take a screen shot automatica​lly and from a remote location

    Hi,
    I have a Desktop, a Video Analyzer with Windows XP, and a Laptop, also running Windows XP. What I would like to do is take a screen shot from the Video Analyzer while running the LabVIEW VI from my laptop.
    I have found this, which gives me insight into the complexity of a print screen call, but this is really only if LabVIEW were running on the system from which my screen shot is desired. For this post, that is not the case.
    If you have a solution or even just a vague idea or comment, please do not hesitate to post. I appreciate any and all feedback on this topic.
    Thank you for your time.
    Jake Brinkmann
    Electrical Engineering Intern

    Thank you for your response. I would like to aviod using outside software in this. I'm sure that TightVNC is great, and it would probably work. I would, however, just like to do this using labview and labview only. Maybe it isn't possible but I really would like to do it entirely in labview. If anyone has any suggestions, I would love to hear them even if they, too, have outside software involved.
    Thanks again Joseph

  • Any method of Openscript code we can use to take a screen shot?

    same as my question, what is method we can use to take a screen shot of browser? i would like to use it when we flag a failure of testing.

    you have the funciton:
    .getScreenCapture(0, 0, 400, 400, imgName)
    Something like that:
    import java.io.File;
    import java.io.FileOutputStream;
    String path = getScriptPackage().getScriptPath();
    String folder = path.substring(0, path.lastIndexOf("\\")); String imgName = folder + "\\capturedImg.jpg"; File imgFile = new File (imgName); [...] web.window(5, "/web:window[@index='0' or @title='Test Web Events']")
    .navigate("http://example.com/Web_Event.html");
    web.window(7, "/web:window[@index='0' or @title='Test Web Events']")
    .waitForPage(null);
    web.textBox("/web:window[@index='0' or @title='Test Web Events']" +
    "/web:document[@index='0']" +
    "/web:input_text[@name='Text' or @index='0']")
    .focus();
    if(imgFile.exists()){
    if(imgFile.setReadOnly()){
    imgFile.setWritable(true);
    imgFile.delete();
    ft.getScreenCapture(0, 0, 400, 400, imgName); if(!imgFile.exists()){
    warn("getScreenCapture() failed.");
    JB

  • How do I take a screen shot with my iphone 5S?

    How do I take a screen shot with my iphone 5S?

    Press the "Home" button and the sleep/wake button at the same time to take a screen shot.

  • How do I take a screen shot on my macbook pro?

    How do I take a screen shot on my macbook pro?

    Press the Shift, Command, and 3 keys to capture the whole screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen, or follow it with the spacebar to capture a window.
    Open the PNG on the desktop. Alternatively, combine either of the above with the Control key to put the screenshot onto the clipboard instead of the desktop.
    (104403)

  • How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    Tatanka11 wrote:
    I'm new to Mac,...
    Then...  You may find these Links of Interest and Value...
    Show me how to set up my Mac.
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    http://www.apple.com/findouthow/mac/
    Enjoy your Mac...

  • How Can I Take Print Screen With in java Application

    Hello Every One,
    Hope U all r fine.
    How can i take print screen with in java code,
    Please Help me out

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3A%22print+screen%22&col=javaforums

  • How can I capture the photo shutter sound when you take a screen shot

    I want to use the Mac's shutter sound that is used when you take a screen shot or take a Photo Booth photo. I tried Audio Hijack but it doen't capture the sound. I figure this audio file must be in the system folder somewhere.

    A camera shutter sound can be found in
    HD>LIBRARY>AUDIO>APPLE LOOPS>APPLE>iLIFE SOUND EFFECTS>FOLEY

  • Hi my name is Aditya. i am using ipad 2. 2 days ago my ipad fall down from my hand and now its screen is not working it is totally blank but shocking thing is that when i take a screen shot the display came back for 2-3 second. any one like me?

    hi my name is Aditya. i am using ipad 2. 2 days ago my ipad fall down from my hand and now its screen is not working it is totally blank but shocking thing is that when i take a screen shot the display came back for 2-3 second. dose ne 1 have same problem....?

    Anyone have any suggestions? or is everyone else just as clueless as me !

  • How do I take a screen shot with MacBook Pro?

    Thought I could take a screen shot with my MacBook Pro but can't find any instructions.  Help

    Press the Shift, Command, and 3 keys to capture the entire screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen.
    Press the Shift, Command, and 4 keys followed by the spacebar to capture a window.
    Open the png on the desktop.
    (82116)

  • Ipad 2 screen is black . when i press the power button it takes a screen shot but i have no functionality . tried holding the home and power button together but the screen just flicker and stay black . no apple icon shows up. help please

    ipad 2 screen is black . when i press the power button it takes a screen shot but i have no functionality . tried holding the home and power button together but the screen just flicker and stay black . no apple icon shows up. help please

    Make sure it is charged for about 10min using the adapter, then connect in recovery mode, explained in this article:
    If you can't update or restore your iOS device

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

Maybe you are looking for

  • Foreign JMS provider

    Hi, I have a pool of MDB's running on wls 9.x (subscriber). MDB pools subscribe to JMS Topics runnng on wls 10 MP1 (publisher). Do I need to import publisher as a foreign jms provider into the subscriber domain ? Why not use simple t3 config from the

  • Using Sun Appserver 7 deploy tool to package 2 ejbs and their clients

    I have a question on how to package two beans into one distributable jar file and also provide the two associated test clients - each in its own jar file. Any help or suggestions would be very much appreciated. This is what I'm trying to do: I am usi

  • Error "This operation is available only for certified forms"

    We have developed the Adobe form in Webdynpro ABAP (NW04S SP9).When we test the form in the ABAP side it works fine. But when we deploy the form in the portal and try to perform the same action we get the error "This operation is available only for c

  • How to continue the batch process?

    Hi,  I would like to continue the BATCH process even there has error. Does it work if I change the message from 'E' to 'W'? Or should I change the 'E' to 'I'? If SY-BATCH = 'X',     LOOP AT gi_messages.           IF gi_messages-zzmsgty = 'W'.        

  • Problems for importing files. avi

    hello, when I try to download a file. avi, a message appears saying:"the software that's used to decode the media is not available on this system. installing the correct decoder", how to resolve. The file is a movie downloaded from the internet. than