Re: Capturing offscreen windows



Dances With Crows wrote :

>>>>> Is it possible to capture [an] entire window (with decorations),
>>>>> which is intentionaly put offscreen, into a bitmap?
>>>> Check "man xwd"
>>> The OP may wish to use wmctrl to activate and move the window to the
>>> current desktop, then run xwd -frame on it, then use wmctrl again to
>>> minimize the window. Remember, if a window's partially offscreen,
>>> xwd won't capture any of the parts that are offscreen. If there's a
>>> way to get offscreen/minimized window contents, it's not in xwd,
>> I want to [capture a window's contents] [programmaticaly], not using
>> external tools
>
> Huh? If you want to write a program, then do so--but it'll take longer
> than using existing utilities.

Surely not always.

>> I do not want to bring offscreen window back to [the] screen to
>> perform capturing--this would generate a lot of flickering. And I
>> want to capture the whole window. [A] window brought to the screen may
>> be partialy covered by other windows. After a lot of googling I tend
>> to think it is not doable in X ...
>
> Everything's doable, it just may be more annoying than you want. What
> is the ultimate goal of all this fooling around, anyway? You never
> provided any specific info about that. There may be an easier way.

The ultimate goal of "all this fooling around" is to write
a form editor which works in a similar way MS VisualStudio
form editor works. The form is not a standalone form on a
screen, but rather it is visualised in an application. The
user acts on this visualisation - not on a form itself.
The example of what I am trying to avoid is old Delphi form
editor, Glade form editor, Lazarus form editor etc.
The example of what I am trying to reach is MS VisualStudio
form editor, new Delphi form editor (?), etc.

My idea is to have a standalone, hidden form which is visualised
in a form editor thru a bitmap. Initial solution works great on
Windows.

I know I could use simple control which "simulates" a form
in an application, but it is a "clumsy" solution and looks
more like a "workaround" than a real solution ( IMO :) ).

> Regardless, you should look at the docs for Xvfb.

Ok, I'll try to dig into it.

--

gotenks
.



Relevant Pages

  • Re: Capturing offscreen windows
    ... Check "man xwd" ... The OP may wish to use wmctrl to activate and move the window to the ... a form editor which works in a similar way MS VisualStudio ... The example of what I am trying to reach is MS VisualStudio ...
    (comp.os.linux.x)
  • Re: Capturing offscreen windows
    ... The ultimate goal of all this fooling around is to write a form editor ... which works in a similar way MS VisualStudio form editor ... can be smoked, just like crack. ...
    (comp.os.linux.x)