Capture .bmp from hidden desktop

Hi , I'm trying to capture a desktop created with the "CreateDesktop" methode.
But I have some problems. I only get the capture .bmp from the desktop, when
it is active. This desktop runs on vm,and I connect to it through remote desktop.
Well, as I said, I only get the bitmap of the desktop when the vm is open. When I mnimize
or close the remote desktop connection, I dont get any bmp from the desktop.
For me is important,because the machine were the vm runs,doesnt have any monitor
to display the desktop.I only want to make this vm to stream its desktop to other computers,
but the vm wont have any monitor.
Is there the posibility to set the desktop as active, or to get the bitmap of the desktop from somewhere else ?
Thank you

Well, I was passing the wrong DC to the PrintWindow function (the one which I retrieved by using GetWindowDC) and then tried to BitBlt it to the memory DC. But the right solution is to get window DC using GetWindowDC then create compatible DC and PrintWindow
to it and not use BitBlt on that stage at all.
Following is a right approach:
// Some code where you get appropriate HWD
HDC wndDc = GetWindowDC(hwnd);
HDC memDc = CreateCompatibleDC(wndDc);
CRect rc;
GetWindowRect(hwnd, &rc);
HBITMAP memBmp = CreateCompatibleBitmap(wndDc, rc.Width(), rc.Height());
HBITMAP oldBmp = reinterpret_cast<HBITMAP>(SelectObject(memDc, memBmp));
// Print window to the memory DC.
PrintWindow(hwnd, memDc, 0);
// Here you can use memDc of the window
// (e.g. BitBlt it to the DC of the merged desktop screen)
DeleteObject(memBmp);
DeleteDC(wndDc);SelectObject(memDc, oldBmp);
DeleteDC(memDc);

Similar Messages

  • How do i change the resolution of my screen shots that i captured from my desktop?

    How do i change the resolution of my screen shots that i captured from my desktop?
    Thanks.

    Do you mean you want it saved with the resolution set to something other than 72 dpi when the capture is made, or do you mean you want your capture saved at a higher resolution than the captured area?
    1) If the first, there are ways to change the default capture format .png to something else, such as .jpg, .tif and a few others, but as far as I know, the resolution will always be 72 dpi. You can use Preview to change the resolution of the captured image under Tools > Adjust Size. You will get this:
    If your intention is to set the resolution for professional printing defaults, then change the resolution to 300. Turn off Resample image to prevent the image from actually having more pixels added. The resolution will simply be reset from 72 to 300 dpi without changing the actual number of pixels in the image. It will also print a lot smaller since the output device will now use 300 pixels per linear inch instead of 72.
    Leave Resample image on if you need to maintain the dimensions. Be aware however that scaling the image (resampling) will add a lot more pixels to the image than are there to maintain size. Expect the image to get very soft and pixelated looking when adding 417% more data to the image than it currently has.
    2) If you mean you want the OS to actually save the captured area as a high resolution image at size, that can't happen. A capture is a 1:1 grab of the display buffer. It can only capture what's there. So if you capture a 700 pixel x 500 pixel area, that's all the bigger it can be without scaling it afterwards.

  • CAPTURING VIDEO AND AUDIO FROM THE DESKTOP

    I AM USING A PAVILION DV 7-6163 WINDOWS 7 OS.
    WHEN I CAPTURE VIDEO OF MY DESKTOP, I ALSO CAPTURE ANY NOISE MY MICROPHONE PICKS UP. A COUGH OR SNEEZ. HOW DO I PREVENT THIS?
    THANK YOU,
    This question was solved.
    View Solution.

    Its simple. DONT cough or sneeze when you are capturing video.
    The notebook which you have has a digital dual-microphone array which features beam-forming, echo-cancellation, and noise-suppression software support. 
    Also Go to Control Panel > Programs and Features, uninstall IDT Audio drivers , restart the computer and install updated drivers from here and see if that helps.
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Trouble capturing video from VHS via Analogue to DV converter

    I use Final Cut Express 1.0.1 and I've always been able to capture video from VHS via a Director's Cut analogue to DV converter box. Today it keeps freezing on me. I've tried force quit, logged off and back on again and even re-started the computer. I've got plenty of space on my two hard drives (125GB free on main drive and 85.42GB on my scratch disk).
    I'm sure I've set the rest up correctly (composite cable from VHS to DV convertor box set to output and connected to input slots on box, and DV box set to capture). The box is correctly connected to the Mac.
    I've also logged on using another user's account to see if the same problem occurs, and it does. I believe this means that dumping the my preference file won't help, but please correct me if I'm wrong. Any ideas how to stop this freezing on me would be much appreciated.
    Thanks
    Karen

    Last bit of help from Martin may have some mileage in it as far as excluding hidden problems with the drive you are capturing too.
    Have been reading into the requirements for the hard disc and it does make it clear having a separate one like you have is almost a requirement because of the work it does. Would it be worth trying a small capture to your system disc. If it helps that is how I am working at the moment so it doesn't appear to be instant fireworks if you do use this one but give it some thought first...
    On the firewire port side of things I have seen some unexplained connection issues on this front which were cured by shutting things down, unplugging and then beginning again. Take it System Profile didn't yield anything?
    Now I got back in front of my Mac it appears Quicktime Pro will allow capture from an attached device but appreciate you may not have the Pro bit, iMovie should be as good a test.
    Nick.

  • I imported my iweb site files from my desktop to my laptop and now they wont open up in iweb

    Hi,
    I imported my iweb site files from my desktop to my laptop and now they wont open up in iweb.
    I can see the files in the home/sites folder but cant seem to be able to replace them with the site that is already in iweb?
    I have just upgraded to lion on the macbook pro and was using 10.4.x on the desktop.
    Is there any way to replace the files and work on the web site on the MBP?
    And I dont see the library/application support/iweb folder anywhere.
    Much appreciate the feedback.
    Thanks

    As I said earlier, iWeb does not open/import webpages.
    And yes, you need the domain file. The movie demonstrates how to move them to and from the default location.
    And the page explains how to open the hidden library folder in Lion. Which is also discussed in the Lion forum and extensively in this one.

  • Startup disk disappear from the desktop

    Well, without any reason, The startup disk is disappear from the desktop.
    (Just only the startup disk)
    I found this 2 times before, once on my 8 cores Mac Pro, once on my iMac G5.
    I couldn't do anything to fix them, so I formatted and re-install OS.
    with my iMac, it ran Tiger before, there's no problem until I changed to Leopard,
    After about 2 weeks under the new Leopard,then the startup disk disappear from the desktop,
    it shown the hidden status in disk utility and could not mount it,
    So I formatted and back to install old Tiger.
    Everything's fine. that's really good Operating system.
    Bad luck, about 2 months ago, My iMac G5 had some problem with motherboard and the harddisk also damaged, I send it to Apple Thailand, They fixed it and send back with installed Leopard inside my new hard disk.(well... again)
    Now after a few weeks. it happen again.
    Startup disk disappear from the desktop.
    This problem never exist on my Mac Pro, just with the iMac G5.
    (Please don't tell me to check the finder preference about the sidebar setting.
    it's already set to show every items there even the iDisk)
    I wondered why I don't see anyone have problem with this.
    I'm really want to find the answer about this.
    I asked this question to Apple Thailand's support team but they didn't have any idea.
    Who's gonna answer this

    I found a solution to the problem and posted it here:
    http://discussions.apple.com/thread.jspa?threadID=1858340&stqc=true
    I pasted the solution below:
    from a Terminal window, type:
    ls -lOd /
    (That's lowercase ell, lowercase ess, space, minus, lowercase ell, capital oh, lowercase dee, space, forward slash)
    You should get something like this:
    hostname:~ username$ ls -lOd /
    drwxrwxr-t 32 root admin - 1156 Feb 8 20:35 /
    Sounds like you might see something like this instead:
    hostname:~ username$ ls -lOd /
    drwxrwxr-t@ 32 root admin hidden 1156 Feb 8 20:35 /
    (note it says "hidden" instead of "-")
    To fix this, type:
    sudo chflags nohidden /
    and provide your admin password. You won't get any output back from the command but the icon should now appear on your desktop, and the hidden flag should go away if you repeat the 'ls -lOd /' command.
    And just in case you missed it above, you've got to be sure Hard disks are turned on in Finder General Preferences under "Show these items on the Desktop"

  • Agent disappearing from Supervisor Desktop

    Greetings -
    Can someone help find a solution to my below problem..
    Environment:
    Cisco Unified CCX premium
    9.0.2 SU2 version
    Agent desktop: 9.0(2) (Premium); Build: 9.0.2.2021
    Problem:
    We have three agents out ten who regularly disappear from supervisor desktop.  I opened a TAC case with Cisco but could not figure out what is causing the problem.  The agent desktop is installed on Win7 64bit, Kaspersky antivirus and no firewall between UCCX and agent.  Between UCCX and agent, we have a Cisco 4500 connecting 6500.  I also opened a case with Cisco switching team to check if switches have any role in agent disappearing, but nothing was found on the switches.  It is interesting that only three users are affected out of all.  The affected users' logs on to CAD without any issues in the beginning of the shift, however, after couple of hours i.e. around 11 am agents start to disappear from the supervisor desktop.  After the agent disappears, the CAD chat windows appears like below and the <Unavailable> status in the chat windows changes constantly every 10 seconds to <Initializing>
    The UCCX capture shows the following:
    <AGENT_DESKTOP_user11>.  The application will be logged out.
    2014-08-20 03:09:46:249 WARN FCCS3008 Network communication error <COMM_FAILURE> sending message to application <AGENT_DESKTOP_mwoods>.  The application will be logged out.
    2014-08-20 03:09:50:021 WARN FCCS3008 Network communication error <COMM_FAILURE> sending message to application 
    The agent logs shows that the heart beat is sent to the UCCX but UCCX dose not receive anything.  While all these are happening, the user can still receive and answer calls, the supervisor though cannot see the user, the reports she runs displays user metrics.  However, after few hours, the agent will appears again on supervisor desktop or re logging will make the user appear again.
    Has anyone experienced this strange issue? 
    Thank you in advance.

    Thank you for prompt response. 
    What I did few weeks ago was, created a new account, assigned queues to that new account and then asked the used to use that account just to check if the issue is specific to user account.  Even then, the agent (newly created account) was disappearing. 
    I am sure if I ask the user to use the working agent account, will not have a problem.  I will have to check with the supervisor if they want to try this out.  I will update you momentarily. 

  • Problem with capture image from wc

    hi all, i want to capture image from my webcam and play it, but it's not work
    please help me, here's code
    public class Demo extends JFrame {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Demo demo = new Demo();
         public Demo() {
              super();
              int a=30;
              final JPanel panel = new JPanel();
              getContentPane().add(panel, BorderLayout.CENTER);
              setVisible(true);
              DataSource dataSource = null;
              PushBufferStream pbs;
              Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
              CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
              for(int i=0;i<deviceList.size();i++) {
              // search for video device
              deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
              if(deviceInfo.getName().indexOf("vfw:/")<0)continue;
              VideoFormat videoFormat=new VideoFormat("YUV");
              System.out.println("Format: "+ videoFormat.toString());
              Dimension size= videoFormat.getSize();
              panel.setSize(size.width,size.height);
              MediaLocator loc = deviceInfo.getLocator();
              try {
                   dataSource = (DataSource) Manager.createDataSource(loc);
                   // dataSource=Manager.createCloneableDataSource(dataSource);
                   } catch(Exception e){}
                   Thread.yield();
                   try {
                        pbs=(PushBufferStream) dataSource.getStreams()[0];
                        ((com.sun.media.protocol.vfw.VFWSourceStream)pbs).DEBUG=true;
                        } catch(Exception e){}
                        Thread.yield();
                        try{dataSource.start();}catch(Exception e){System.out.println("Exception dataSource.start() "+e);}
                        Thread.yield();
                        try{Thread.sleep(1000);}catch(Exception e){} // to let camera settle ahead of processing
    }

    iTool wrote:
    hi all, i want to capture image from my webcam and play it, but it's not workThat's a very descriptive error message, "it's not work". Everyone on the board will certainly be able to help you out with that.
    The first error I see is that you're using the CaptureDeviceManager in an applet. If T.B.M pops in here, he can tell you why that's going to be a CF 99% of the time.
    The other error I see is that your code looks absolutely nothing like any working JMF webcam capture code I've personally ever seen.
    Lastly, the big one, even if you were somehow capturing video magically, you're not even trying to display it...so I'm not entirely sure why you expect to see anything with the code you just posted.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html]
    Your best bet would be starting over and using the example code from the page linked above.

  • IMovie '11 capturing direct from camera crashed, need to recover file

    I was caputuring direct from a camera via firewire and the drive got almost full, so iMove crashed.  I can find the capture file, a .mov, put it fails to open in quicktime or VLC.
    Please help.  I've got over 2 hours of footage that I really need.
    Thanks,
    Jason

    An alternative solution....for now. If you copy the files to your desktop or in any other folder you want them (it's temporary), you can still import them in iMovie. Just click Archive, Import, Movies and search for the folder you put your files in. I did it several times with success, that means no error! Now I can use my files and edit them in iMovie. You can delete the files on the desktop, since iMovie has copied the files into the iMovie library.
    Another possibility is drag and drop the files from your desktop directly into an event. iMovie will copy the files into the library. For both options I am not sure if analysation for stability en recognising persons had been done while importing, but I guess you can do that later on.
    Do not make the mistake of importing them in Aperture or iPhoto, drag and drop it an iMovie-event and delete it in Aperture/iPhoto... You will only hear the audiostream, you will see miniatures in iMovie, though your videostream is gone. That's how I lost the first video of my second daughter .
    Until there's a good solution or update from Apple it works for me. I hope it does for you too!

  • Why does deleting a folder from the Desktop also delete it from my Favorites in my 'Computer' window?

    I have a folder on my Desktop that I've dragged and dropped into my Favorites in the side bar. When I try to delete the folder from the Desktop, it wants to delete it from my favorites, as well. How can I delete the folder from the Desktop without deleting the one in my Favorites?

    Items in the favorites bar are simply references to physical folders on the hard drive. 
    There are ways around this if you simply do not want to see the folder from the desktop.
    You can move the folder somewhere else on your hard drive. The reference in favorites should still point to the correct folder.
    Or you can hide the folder itself by typing the terminal command
    chflags hidden
    then drag and drop the offending folder into the terminal window.
    So you will see something like this – chflags hidden /Users/YourName/Desktop/FolderName
    Then press enter  and bam, folder invisible but still in favorites.

  • Capturing image from Webcam

    Hi,
    Is there any way in which Java can be used to capture images from the webcam and save it to a predefined image file name?
    Any examples out there?
    Alternatively, I could have the application written in other languages, but still, I would need my main Java app to launch this external app.
    Thanks alot.

    Hi,
    Is there any way in which Java can be used to capture
    images from the webcam and save it to a predefined
    image file name?
    Any examples out there?
    Alternatively, I could have the application written in
    other languages, but still, I would need my main Java
    app to launch this external app.
    Thanks alot.Yes, the ExampleSave from the JavaTwain package at http://www.gnome.sk does this job :)
    If you just want to see how Java Twain works with your webcam (works with a scanner too):
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, ...
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] . I am the member of the staff :)
    Erika Kupkova

  • How can I change screen capture format from .png to .jpg in LION

    how can I change screen capture format from .png to .jpg in LION. The "terminal" suggestions of the past don't work? Thanks!

    This works for me:
    defaults write com.apple.screencapture type XXX
    where XXX is one of png, pdf, jpeg-jfif, jpeg 2000, tiff, pict, bmp, gif, psd, sci, or tga. You need to log out and back in for the change to take effect.

  • Hiding a specific HD from the desktop

    Hi there,
    Is it possible to hide a specific HD from the desktop?

    the only way to do this is to hide it from finder completely, not just from the desktop. (It can remain in the sidebar though). to do that run the following terminal command
    chflags hidden /volumes/"drive name"
    put the drive name in the command. KEEP the quotes. then log out/in and the drive should be hidden from finder and the desktop.
    to reverse the effect change "hidden" to "nohidden" in the command.
    another option is to hide all drives from the desktop and put aliases to the ones you do want there back on the desktop. however all new external drive you attach to the computer will be hidden from the desktop too unless you make aliases for them as well.
    Message was edited by: V.K.

  • Unable to capture video from VHS through DAC-200

    (Running Final Cut Pro 5.1.4)
    I have a DAC-200 to hook up my VCR to my G5 in order to capture video from VHS tapes into Final Cut. I had this set-up working a few months ago, but it was disconnected to rearrange equipment and now I can't get it working again. I have followed the advice from the DAC-200 installation instructions and advice from other forum topics but can't seem to get it to work. I finally was able to get something in the log and capture window besides "preview disabled" and "cannot capture because there is no video." I now can get Final Cut to capture video, however it only captures a blank black screen (and this is all I can see in the preview window).
    I've triple-checked every cable hook-up, the G5 recognizes the converter box, the video tape plays fine to a tv. I've even had our IT-guy here at work come check out my set-up for help and he can't figure out what is wrong either. (He did get my log&capture window to get white fuzz in the black screen at one point though. Does that mean anything?)
    Any help is greatly appreciated! (I'm happy to answer any other questions too.) Thanks!

    I had difficullty with the X.4.10 plus QT7.2 and put my info on the Forum as well as sending feedback to Apple. Shortly afterwards, Apple brought out a short security update which I downloaded and, hey presto, I was then able to use QT7.2 with OSX.4.10. It may be that you missed out on the later small update to QT7.2..... ? Another factor I found was that some little while later I again had a problem so I again installed QT7.2 and over-installed FCP5.1.4 which has resolved my problems for the time being. Worth a try if you still can't get through on the DAC.
    Ron.

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

Maybe you are looking for

  • Difference between FS10N and FBL3N

    Friends, When we run the FS10N report for a G/L a/c in a company code for the year 2007, it only shows an open balance of X amount. This amount is only for a particular business area. I have checked the settings and the report is not restricted for t

  • Trouble using OSX 10.4.7 & .8 on iMac 24" (Core 2 Duo 2.16GHz)

    If I choose Russian Interface and try to print from almost any application to network printer connected via AppleTalk or IP or as Windows printer, Application crashes after pressing button Print ("Напечатать...") Here is the dump of TextEdit Date/Tim

  • Manual Deployment of Java Class's to Database

    I was using JDeveloper, now my company has bought JBuilder 4.0, Can any one tell me how deploy my class's manually becuase JBuilder doesnt support deployment=(

  • Blocking my name

    i want to sykpe with someone i do no know.  I do not want my name to appear on the page that they see.  how do i take my name off of outgoing skype? Is it possible to set up a new account using initials and a new skype name?   I tried this but when i

  • Oracle drive Advanced Properties...

    I have installed Oracle drive on my desktop and using that I am able to access my content server. But when I right click on the file in content services using oracle drive I have certain options displayed one of them is the "Advance Properties". I wa