Print Screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • user232k2038
    New Member
    • Sep 2007
    • 16

    Print Screen

    Hi,

    I'm trying to create a basic screen recorder, so my program takes screenshots at intervals of 200 ms. To take the screenshots, I have the following:

    Code:
    System::Drawing::Bitmap ^Screenshot (void)
    {
      SendKeys::Send("^%{PRTSC}");
      return gcnew Bitmap(Clipboard::GetImage());
    }
    The problem is, whenever the code is called, it delays all running applications and the cursor disappears for a moment. Is there any way to avoid this?

    Thanks.
  • AHMEDYO
    New Member
    • Nov 2007
    • 112

    #2
    HI....

    i got vb6 code for you using API, you can use the same functions to create your owen funtion that take screen shot, because i think when you send print screen key to take screenshot and you got delay , this is not your application problem, just windows take screenshot by way i dont know it.

    and this method sure fatser that yours because you dont need to transfer your bitmap to clipboard, just from video memory to your application memory, and sorry this is vb code but it using API and i think almost VC++ is API, just you can use API instead.

    i hope this code help you

    Comment

    • user232k2038
      New Member
      • Sep 2007
      • 16

      #3
      Thanks! That'll help a lot.

      Comment

      Working...