Capture the Active Window

I need to capture the Active window on the event of PrintScreen Key pressed. What I get is the whole desktop. Can anyone please tell how do I capture the Active Window?

Try alt-printscreen
But I don't know what it is in Java

Similar Messages

  • Urgent!! How to capture the active windows

    I want to write a program to capture the active windows in the Windows desktop. Can anyone help me. I know to use class "Robot" to capture the screen, but how to determine the position of the active windows in the desktop.
    Thanks...

    This code could work to capture the desktop screen:
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    Image imgs;
    try{
         Robot r = new Robot();
    Rectangle rect = new Rectangle(0,0,d.width,d.height);
    imgs = r.createScreenCapture(rect);
    }catch(AWTException awe) {
    System.out.println("robot excepton occurred");
    Try this!!!

  • How do I get the activity window in safari 6.0.2?

    How do I get the activity window in safari 6.0.2?

    Safari 6
    Activity Window is no more available in Safari 6.
    Apple removed that feature.
    Best.

  • How can I make Reader the active window when opening documents?

    I am having trouble with this because right now documents open in the background and Adobe Reader does not become the active window.  This requires an extra click on Adobe to bring the opened document to the foreground.
    Nowhere to be found in Preferences.
    My system is Linux RedHat 2.16.0
    Adobe Reader 9.3.1
    Thanks a bunch.

    Sir,
    Inspect the following methods (all available to, say, a JFrame) - they might help you out:
    setVisible
    setState (to (de)iconify)
    toFront (request to bring to front)
    requestFocus

  • Why doesn't the file progress show in the Activity Window

    In Dreamweaver CS6 the file progress in the Activity Window doesn't show.  In DW CS5 and before you could monitor the file as it uploaded.  You could see how much of the file in increments was uploaded. Now the blue progress bar displays but I have no way of knowing how much of the file has uploaed until it's done.  Is there a way to put that back yo how it was?
    Thanks

    I found the answer to this problem at this link:
    http://blogs.adobe.com/dreamweaver/2012/06/ftp-improvement-in-dreamweaver-cs6.html
    Seems the activity window has in fact changed in CS6.  To see the progress you hold your cursor over the file you are transferring.
    Not sold on DW CS6 so far to be honest...

  • I have a dual monitor setup.  When I paste develop settings from one image to another, Lightroom switches the active window.

    Strange problem.  Lightroom 5.5.  Windows 8.1. Dual monitor setup.
    I'm processing a large batch of photos.  I have Monitor #1 set as my main develop window, with Monitor #2 set only to display a larger version of the image I'm working with. If I copy the develop settings off of one image and try to paste them onto another image, Lightroom will switch from Monitor #1 to Monitor #2 as the main develop window, and will not display anything on Monitor #1.
    If I then try to paste develop settings onto another image on Monitor #2, LR will then display a larger version of the image I'm working with on Monitor #1.
    To work the way I want to, I have to continually drag my develop window back to Monitor #1 every time I try to paste develop settings onto a new image. How can I make this stop?

    I just tried what I think you’re saying you’re doing and I don’t have the problem with LR 5.5 on Windows 7 SP 2.
    Does the same thing happen whether you use the key shortcuts vs the Settings / Copy/Paste options on the menu?
    I ask this because if you’re using the keyboard shortcuts, maybe you have some display-manager program that has bound itself to the Ctrl-Shift-V (paste settings) to the function of move-to-other-monitor which would do at least part of what you describe.
    You can also test this theory by doing a Ctrl-Shift-V with an application other than LR as the active window and see if it moves.  I suppose Ctrl-Shift-C might also play into it so try both of these hot-key combinations with a program that isn’t LR.
    If none of this sheds any light on the situation, then give a more detailed description of the low-level functions you’re doing to accomplish the copy-paste of settings, so someone else could replicate the steps exactly.
    Specific detailed steps, like:
    left-click on source photo’s thumbnail in the filmstrip
    press Ctrl-Shift-C to copy the settings
    click Check-None
    enable the white-balance and calibration checkboxes
    click Ok
    left-click on destination photo's thumbnail in the filmstrip
    click on Settings / Paste Settings in LR’s menus to paste the settings to the selected photo

  • Screen capture of active window in LabWindows at run time

    Hi NI,
    We at KPIT are building an application which gathers data from an ECU over RS-232. We have completed our UIR file and tested basic send recieve. We would like to automate the test report generation. For this, we need to capture the GUI window (containing graphs, text boxes etc.) after the end of the test. Currently we are doing this manually using the standard Alt+PrintScreen fucntionality provided by Windows. Is there a way in LabWindows to capture the GUI form/screen/tab automatically through an API call ?
    Regards,
    -Ashish

    Hi it's not that elegant but you can usethe following code i wrote:
    it uses ClearClipboard software and it's basicly an automated printscreen
    int BmpID,Available=0,Width,Height,RowB,PixDepth,Error,Status;
    int *ColorTable=NULL;
    unsigned char *Bits=NULL; unsigned char *Mask=NULL;
    LaunchExecutable ("c:\\Program Files\\ClearClipboard\\ClearClipboard.exe");
    Delay(1);
    keybd_event(VK_SNAPSHOT,0xd4, 0, 0);
    keybd_event(VK_SNAPSHOT,0xd4, KEYEVENTF_KEYUP, 0);
    ProcessSystemEvents();
    ClipboardGetBitmap (&BmpID, &Available);
    AllocBitmapData (BmpID, &ColorTable, &Bits, &Mask);
    GetBitmapData (BmpID, &RowB, &PixDepth, &Width, &Height,ColorTable, Bits, Mask);
    SaveBitmapToJPEGFile (BmpID, strFull, 0, 100);
    DiscardBitmap(BmpID);
    free(Bits);
    free(Mask);
    free(ColorTable);
    Hope it helps....
    Kobi Kalif
    Software Engineer

  • ITunes 9 Keeps popping up as the active windows!

    I'm extremely annoyed that iTunes continues to pop back up as the active window no matter what. I can't get any work done! What is causing this to happen?

    Hello - I had this same problem after a fresh install of windows 7....drove me crazy...I noticed that windows had installed my soundcard automatically, without the factory drivers. I downloaded and updated the original drivers for my soundcard, and it fixed the problem. I don't know if this will work for everyone, but it worked for me....hope it helps someone else. I am using a realtek onboard soundcard on a gigabyte board.

  • ITunes is not the active window

    Can anyone tell me why when I open iTunes, it is not the active window - this does not seem to be happening with any other application? If there is another window open, it also opens behind this window and is still not the active window?

    Greetings AndrewwChinnn,
    It sounds as though you are unable to connect to the iTunes Store. I have located an article that can help with the specific error you mentioned:
    Apple software on Windows: May see performance issues and blank iTunes Store - Apple Support
    Thank you for contributing to Apple Support Communities.
    Best,
    BobbyD

  • I am running OS 10.6.8. How do I delete/change the tiny thumbnail in the top right corner of the active window title bar? Thanks.

    I am running OS 10.6.8. How do I delete/change the tiny thumbnail in the top right corner of the active window title bar? Thanks.

    I am running OS 10.6.8. How do I delete/change the tiny thumbnail in the top right corner of the active window title bar? Thanks.

  • RSBBS - New transcation is NOT opened as the active window

    Hello experts,
    I'm calling an R/3 transaction from a Bex query.
    The problem is that the new transaction is opened in a new window which is not the active one.
    The active window remains in the Bex window.
    Does anyone have a clue how to give the new R/3 window focus and make it the active one ?
    Hope I was clear.
    Thanks in advance, Amir.

    Hi Amir,
    First you go to following path
    C:/Windows/System32/drivers/etc/host
    open host file in notepad and
    add your server IP, name & Fully Qualified Domain Name like abc.xyz.com
    then save it.

  • Where's The Activity Window in Safari 6?

    ?

    I tried re-installing 5.1.7 but it immediately crashes now. Switching the Safari 6 file for the 5.17 file isn't enough; there are probably other files that need to be downgraded also but I didnt want to play around with that. I have found a weird, obtuse work-around, though.
    1.      Enable the Developer menu under Preference...Advanced.
    2.      Open the Web Inspector BEFORE you get to the page with the movie you want to save. You can actually go to the page first, then open the inspector, then hit back then forward to reload the movie page. Just hitting reload may also work.
    3.      In the left-most pane there will be a list of folders; one should be titled "Other". Reload the page to get this folder if it's not there. I don't know what to tell you if there is no "Other" folder.
    4.      Click the triangle to open the Other folder.
    5.      One of the things listed in Other should be the movie file; click on it.
    6.      In the right-most pane the full url of the movie willl be listed. Copy this URL just like you would've from the activity window.
    This has worked for me. I'd rather have the Activity window back.

  • Where did the Activity window go in Safari?

    Updated to Mountain Lion and now the activity window in Safari has disappeared.  I use that a lot so am really hoping it still is accessible.  When I search activity window in Safari help, I get this:
    You can monitor and examine each element of a webpage loaded by Safari. This is useful if you want to view the structure of a webpage.
    Open the website using Safari, and then choose Develop > Show Web Inspector.If the Develop menu isn’t in the menu bar, open Safari preferences, click Advanced, and then select “Show Develop menu in menu bar.”
    To view webpage resources in the Web Inspector’s sidebar, choose Develop > Show Page Resources.
    But there is no menu labeled "Develop" and nothing called "Web Inspector".  So what's up with this?????

    If you still have Lion you can download the Safari 5.0.5 app here: http://siys.blogspot.com/2012/08/safari-505_16.html
    No installation required. Follow the instructions.
    This does not work for Mountain Lion.
    If you have Mountain Lion and truly wish to be able to still use Safari 5 you would need to create a small partition and install Lion. You'd then need to log out of Mountain Lion and login to Lion each time you wish to use Safari 5, which is not all that practical, but it will work.

  • Where is the activity windows in safari 6?

    Where is the activity windows in safari 6?

    I miss it too.  I used it all time and now its gone.  Apple, please bring it back in Safari 6.1!

  • Firefox userping the active window...

    Running on iMac, OS 10.7.2
    When FFox is on any of several social networking sites, if someone sends me a message, FFox becomes the active window causing many problems when multitasking with other applications.
    i.e. I can be working in MS Word and suddenly FFox take control of the active window and jerks me out of MS Word and into FFox.. It does this with other applications as well, like Safari, iChat, Yahoo IM, and the list goes on...
    I'm just about at my wits end trying to figure out what SETTING or what ever that I can not find to stop this behavior...
    PLEASE HELP IF YOU CAN...
    Thanks for your help.

    If you have tabs on top and no menu then the tabs are in a "Windows" area so there is no space to right. If you put tabs back to the bottom you will have most of your old behavior but because of the changes to tabs on top most of the tab context menu stuff all of the context menu part was lost except the customize toolbar stuff, double-clicking on an empty spot was restored, and eventually during the FF 4 beta most of the tab extensions Firefox messed up eventually worked again except in the area to the right of the tabs.
    The Windows part of that double-click has to maximize or restore to normal,
    and you have to be able to drag the window by it;'s title bar.
    You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

Maybe you are looking for