Taking screenshot from another window

I am writing an application in which I have to take a screenshot from another application's window. Is this possible in Java?

hi friend,
We can capture the Entire screen using java's Robot class.
Dimension screenDim =  Toolkit.getDefaultToolkit().getScreenSize();
            Robot r=new Robot();
            BufferedImage bi=r.createScreenCapture(new Rectangle(0,0,(int)screenDim.getWidth(), (int)screenDim.getHeight()));
            File f=new File("screen.png");
             ImageIO.write(bi, "png",f);

Similar Messages

  • How to handle "/9.2.0/root.sh as root from another window" in silent instal

    Hi,
    I was successful to start a silent installation of Oracle9iR2 using a responsefile on my System RHEL 3. But the installation ends soon and a wrong successful install message:
    Error :*** Alert: A configuration script needs to be run as root before installation can proceed. Please leave this window up, go run /opt/app/oracle/product/9.2.0/root.sh as root from another window, then come back here and click OK to continue. ***
    The installation of Oracle9i Database was successful.
    I use -ignorePatchConflicts for ignoring the patch conflicts. But How do I handle these issues. Where I have to run root.sh ... etc in teh Non Interactive Install.
    I am scripting solution for non interactive install and manual intervention to run these root.sh shell scripts at different points of install is not a good idea as it wont help me automate the install.
    Please let me know if anyone has solved this problem with -silent install.
    Thanks in advance.
    Senthil

    Thats me (OP) again:
    I tried setting:
    SHOW_ROOTSH_CONFIRMATION=false in the response file. But still no help. The installation exits at run root.sh prompt point. How I can effectively deal with it in a script?

  • Executing JavaScript Embeded in a Servlet From another Window

    I'm trying to access an object in a Servlet page from another window in a
              frameset. I'm getting an Access denied Error. Can anyone help?
              Very Urgent..
              

    Thanks for the reply.
    So if I have a method in my DAO class called login() and I want to call it from my control servlet, what would the syntax be ?
    getrequestdispatcher.include(newDAO.login())
    where newDAO is an instance of the class DAO, would that be correct ?? I'd simply pass the request object as a parameter in the login method and to retrieve the results of login() the requestdispatcher.include method will return whatever I set as an attribute to the request object, do I have that right ?!!!!
    Kevin

  • Oracle Database XE - apex on Windows 7 - Problem with Connection from another Windows 7 Computer

    Hello,
    I started with Oracle Database XE 11g, with apex, did the upgrade to Apex 4.2.6 and started in developing a small Application.
    I wanted to Connect to my Computer A (with Database runing on it) from another Windows 7 Computer B.
    So I put in in Firefox: //A:8080/apex but I only received a timeout.
    Of course on both Computers there is a windows-Firewall running, so I stopped on both Systems the Firewall, but its the same still.
    In the windows explorer running on Computer B , I can see the data of Computer A and both Computers are in the same home-net-group. (sorry for my poor english).
    Is there anyone who cann tell me how to get the Connection running ?
    Maybe I didn't see the info about this in the manuals, if it is there, please give me a hint.
    many thanks
    Wilhelm Kästner Salzburg

    Hi,
    Check if this helps
    https://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW127
    Regards,
    Jari

  • Excel download into a sheet-2by taking formula from another sheet.-1

    i hv an internal table itab.which contain 3 fields a,b,c.
    a,b are input parameters (int).c = ab.Now i hv to download the values of a,b,c into a excel sheet-2 by <b>taking the formula</b>(c = ab) <b>from another sheet-1</b>.and everytime the new vales of a,b,c should be appended ito the sheet2.
    can anybody tell me which fm i shoud use?? or some sample code will be grrr88.
    points will be rewarded.

    See if these blogs can help you ...
    /people/rich.heilman2/blog/2005/09/12/manipulate-excel-with-ole-abap
    /people/sap.user72/blog/2006/02/07/downloading-data-into-excel-with-format-options
    Not sure if you can do the calculations.
    Regards,
    Ravi

  • Photos from another windows account have appeared on iPod

    I've recently found my images from my windows account have appeared on my mothers ipod despite it being synced to another windows account where the images are not even accessable due to the permissions.
    To ensure that my problem is clear, my images are stored on my account named "John" on my windows desktop PC. My mothers ipod is synced to the account "Mum", where the images are not even accessible from due to it being a limited account.
    The images cannot be deleted on the ipod, and have appeared around two days ago, despite the ipod not being connected to the computer. I can only add the images to another album, or share them.
    In itunes, the checkbox on the photos tab for it to sync it deselected, and so it's not even like they should be syncing any photos at all.

    Even if we don't work out how it has happened, how can I just remove the images? It's vital I remove them as soon as possible as some of the photos were sent to me from my girlfriend and really aren't to be viewed by my 55 year old mother.

  • After Installing Acrobat X Standard, Cannot print from another Windows Program

    I am having a strange problem.  Once I installed Acrobat X Standard, another Windows based program stopped printing.  It now comes up with a usp10.dll error, but most of the time it just crashes the program.  Tried reinstalling the program and no luck.  The error points at a Helvetica Font being the culprit that was installed with Acrobat.  I am not sure how to clear this up.
    Thanks

    I have not removed it.  One of the things I did try was going into the Registry and to FontSubstitutions and change the Helv to Helv,186 or something like that.

  • Creating Recovery Disk from another Windows

    Hello everyone, my laptop is HP Pavilion dv6 7040-tx and Product NumberB8N04PA#ACJ. It came with Windows 7 Home Premium which is also, in the recovery partition. I removed Windows 7 Home Premium and installed Windows 7 Ultimate. Now I want to create recovery disks for the Windows 7 Home Premium from the Recovery Partition. But I don't have HP Backup and Recovery Manager installed in Windows 7 Ultimate. Can any one tell me how to do this without doing recovery or removing my current Windows 7 Ultimate installation??

    You must burn the Recovery Disks before installing another OS. You can call HP to order a set.Choose your country here>> Contact HP
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How can I keep my extensions separate from another Windows user?

    I love LastPass and can't live without it. My wife can't stand it, and doesn't want to use it, or ever see it; but if I install it, she has to see it too (including update announcements, which particularly annoy her). She would prefer to have Firefox remember her passwords. How can we have distinct sets of extensions on the same machine?

    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. 8.2.3; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer.
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Can't open files from an application by dragging the file from another window

    In Mac os x 10.6, i was able to to open a file by simply dragging it and placing it on the 'open' Window which automatically changes the location to where the dragged file is. Ever since updating to Lion, i'd have to go folder by folder from the 'Open' window until i get to where the file is and selecting it.
    i

    I tried it with so many applications Like When i'm sending a file via bluetooth, i tried opening a file with iTunes too by dragging to see if it'll work, it didn't. I tried uploading a Photo to facebook too by dragging it to the select photo window, it didn't work.

  • My settings vanished and are replaced by another user's settings from another windows login. how do I get my settings back? Thunderbird also affected!

    My daughter and I have separate windows logins on the same computer. We both use Firefox. Today, when my daughter logged off and I logged on, all of my settings (persona, bookmarks, history, etc) were gone and replaced with hers. My settings are correct in Internet Explorer but Firefox and Thunderbird are using her settings all of the sudden. How do I get my settings back? I have lost all of my emails and everything.

    You have something else on that PC that keeps installing that Yahoo crap, it sure as hell isn't Mozilla. Google is and always has been Mozilla's partner for search engines.

  • How to fix load image from another window?

    I have set up a page with a button when clicked, it open 2 windows on top,
    the right one first then pop up the left onload.
    Left window works as a menu, when clicks the thumbnail image on the left window
    will display an enlarged image on the right window.
    When browser preference set to block popup window
    it will only popup the right window, won't popup the left window (menu) onLoad.
    I've try to set the behavoir to pop up both left and right window onClick,
    it open 2 window but lost the function of display image on right window.
    It display the large image on the window underneath instead (the button page)
    I know it sounds confusing but hope someone can help to solve the problem
    Thank you

    Where is the URL to your site?
    Gramps

  • How to use CSACS 3.3 to authenticate users from multiple windows domain?

    Can Cisco Secure ACS 3.3 be used to authenticate users from another Windows domain that is not a child nor a trusted domain???
    hello, here is my scenario:
    ACS 3.3 was installed on a member server on domain1. I need to authenticate and ultimately populate the users into ACS from another domain. The service already works perfect on just domain1, but now I need to authenticate users from another domain.
    And adding those domains as trusted domains in domain1 is not an option.
    Is Generic LDAP my only other option? Any config guides that you guys know with regard to doing this?
    Any input is much appreciated.

    Hi Betcy,
    I am not familiar with sharepoint solutions, but as you mentioned about windows credentials I believe it refers to kerberos tokens. On this case you can take advantage of SPNego authentication.
    You can find more details on following SAP note:
    #[1488409|https://service.sap.com/sap/support/notes/1488409] - New SPNego Implementation
    I hope it helps.
    Kind regards,
    Lisandro Magnus

  • Cancel a ProgressEvent from another 'loading window'

    Hi
    I'd like to know how, if possible, how to cancel a ProgressEvent.PROGRESS or how do cancel the 'loading' process in general.
    I also want to know how to do it from another class, what happens is I create a 'loading window' with a cancel button so you should be able to cancel if the loading is taking too long for your liking.
    var msg:msgClass = new msgClass();//*********** Creates a window with message if any errors happen.       
    var winLoading:winLoadingClass = new winLoadingClass();//*********** Creates a window with a loading bar and cancel button
    winLoading.win()//***********activates loading window
    dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    dispatcher.addEventListener(Event.COMPLETE, completeHandler)
    function completeHandler(event:Event){winLoading.winClose()}                                                             
    function progressHandler(event:ProgressEvent):void{if (event.bytesLoaded == event.bytesTotal){winLoading.winClose()}}
    function securityErrorHandler(event:SecurityErrorEvent):void{msg.win('Security Error');}
    function httpStatusHandler(event:HTTPStatusEvent):void{if (event.status != 200){msg.win('Connection to server lost');}}
    function ioErrorHandler(event:IOErrorEvent):void{winLoading.winClose();msg.win('IO Error');}
    Any help will be much appreciated

    The Loader class has a close() method.  Look it up in the help documentation if you need more information.  Also, you could remove the progress listener.

  • How can I copy light from one window to another in a photo?

    I am looking at printing an image I shot last winter as our Christmas card this year. There are three windows in a mediaeval building, each composed of multiple leaded panes and the one on the extreme left is lit. My partner would like to have the middle one lit as well. Is this feasible without commiting huge amounts of time to the project or do I need to rebook the snow and arrange a reshoot?

    brahma56,
    Here is another approach to light up the window:
    Open picture file
    Open a blank layer on top of this, fill it with black, blend mode normal, opacity 75% or so. Rename it "black night"
    Create new layer above this, name it "window 1", blend mode hard light
    Access lasso tool and select the window, feather=0
    Select a soft brush, mode normal, opacity 20-30%, paint window from bottom up. Should be a tad lighter at top vs. bottom. Use the "light" color from the window on the left which you can get with the eyedropper tool for your foreground color
    Use eraser tool to tidy up
    If wood slats on window are obscure, open a new layer at top, select foreground color from the window frame on the left, and using square brush, reconstruct same. TIP: When using brush tool, click at start point, hold down shift key, click on end point to get a straight line.
    Adjust opacity of black night layer to suit

Maybe you are looking for