Re: Capture windows area

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mike D Sutton (EDais_at_mvps.org)
Date: 01/03/05

  • Next message: Peter Gast: "Re: Capture windows area"
    Date: Mon, 3 Jan 2005 10:59:40 -0000
    
    

    > I want for a small graph-app. a feature which enables capturing a visible
    > area of the desktop. The code works almost fine when I move a rectangle with
    > the mouse the area inside this rectangle is captured. The problem is, that
    > in some cases some object get the focus and change their colors (for ex. if
    > you make a rectangle were an icon of the desktop is inside, or inside the IE
    > pictures can get focused and changes). How can I avoid that this occurs?
    > How can I draw visible rectangle to give the user a feedback of the current
    > area?

    A common technique is to make a screen capture of the entire desktop and display it on a full-screen borderless form, this way the
    user still sees what the desktop contains but effectively has a 'freeze-frame' while they're making their selection (which of course
    won't change when the mouse hovers over it.) Once the selection has been made then hide the full-screen window and resume capture
    of the desktop area as you would.
    If you want to stop the user from moving the mouse over the active area during the capture then you'd probably need to 'clip' the
    mouse cursor as in this post:
    http://groups.google.co.uk/groups?selm=Oj5dEKMFDHA.2824%40TK2MSFTNGP11.phx.gbl
    You may want to add an automatic unlock on a timeout though in case your window lost focus and the user didn't know about Alt+Tab to
    switch it back.
    Hope this helps,

        Mike

     - Microsoft Visual Basic MVP -
    E-Mail: EDais@mvps.org
    WWW: http://EDais.mvps.org/


  • Next message: Peter Gast: "Re: Capture windows area"

    Relevant Pages

    • Re: java.awt.Robot - new programmer, need a little help.
      ... There are other apps out there that allow a user to select an ... rectangle within the grid and auto save that image to a defined ... provides faster recording. ... Why not just capture the whole screen in the first place? ...
      (comp.lang.java.programmer)
    • Re: Capture windows area
      ... >> the mouse the area inside this rectangle is captured. ... Once the selection has been ... made then hide the full-screen window and resume capture ... window lost focus and the user didn't know about Alt+Tab to ...
      (microsoft.public.vb.winapi.graphics)
    • Re: image acquisition via screenshot
      ... it only works if I capture a rectangle inside the figure. ... I run Matlab on a remote host and export the display to my XServer. ...
      (comp.soft-sys.matlab)
    • Capture part of the PocketPC-screen?
      ... The aim is to draw a rectangle with a SolidBrush in the needed ... background-color somewhere outside the visible screen, ... Now I need to find a possibility how to capture a given region of the screen ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Yojimbo, DevonThink, Journler ... something else?
      ... almost any application will capture that content. ... What about a text selection, is that a snippet, or a ... There is also a print PDF to EagleFiler' option as is pretty universal with apps of this type. ... Email steve 'at' shodgson 'dot' org 'dot' uk ...
      (uk.comp.sys.mac)