Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Capture Screen whenever the display is updated

Capture Screen whenever the display is updated

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijjuuu
    wrote on last edited by
    #1

    hi all, i am planning to implement a tool which can capture screen only when there is display event from Operating system (for e.g window 7) level. i have idea how to capture a screen at regular interval of time but that's not what i am planning to implement. the idea is tool will run be running in the background and it must capture the screen only when the screen is updated. i have no idea where to start. i am open for technology (c++ or c# or any other technology) i request to give me some suggestions/ideas what could be better start. Thanks Vijay.

    J 1 Reply Last reply
    0
    • V Vijjuuu

      hi all, i am planning to implement a tool which can capture screen only when there is display event from Operating system (for e.g window 7) level. i have idea how to capture a screen at regular interval of time but that's not what i am planning to implement. the idea is tool will run be running in the background and it must capture the screen only when the screen is updated. i have no idea where to start. i am open for technology (c++ or c# or any other technology) i request to give me some suggestions/ideas what could be better start. Thanks Vijay.

      J Offline
      J Offline
      John Torjo
      wrote on last edited by
      #2

      Vijjuuu. wrote:

      (c++ or c# or any other technology)

      0. those are not technologies, they are languages. 1.Capturing the screen is easy http://blogs.msdn.com/b/dsui_team/archive/2013/03/25/ways-to-capture-the-screen.aspx[^] http://stackoverflow.com/questions/5069104/fastest-method-of-screen-capturing[^] There are other ways, just google for "win32 api capture screen" 2. when screen is updated - this is pretty much close to impossible to find out - at least I don't know of a way to do it. The way you can do it is to simply have a timer, capture when the timer is triggered - and if you wish, compare with former screen (bitmap). 3. I'm not sure what you're trying to achieve, since there may be other ways to find out "when screen is updated" depending on your actual needs - perhaps you might be only interested in a specific window(s)? It would be a smart choice to minimize the area you're capturing, since that can indeed take a while and it's not really a good idea to to it too fast (not to mention - what if the user has a few monitors, and/or high resolution ones) 4. If you're just trying to learn programming, I suggest you take an easier task. Best, John

      -- LogWizard Meet the Log Viewer that makes monitoring log files a joy!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups