LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2011, 10:29 PM   #1
1073710317
LQ Newbie
 
Registered: Mar 2011
Location: Canada
Posts: 1

Rep: Reputation: 0
Smile How to write a project to grab the UI into a image bitmap???


The Project is for writing a generic program which extracts list of applications that is running on Unix, and for each application, determine if it has a corresponding graphical UI interface, is so, the program should be able to grab the UI into a image bitmap. The program should be able to run in any Unix UI framework, such as CDE, KDE, X, Motif, et al.
 
Old 03-29-2011, 02:17 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
there is a utility called xwd that may be of help:


http://www.manpagez.com/man/1/xwd/

comes standard with X windows.
 
Old 03-29-2011, 12:52 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The basic functionality of such a project is relatively pedestrian, if you make some gross assumptions. Problems that will complicate matters:
  • What about applications using an X server on another host?
  • What about applications whose windows are not fully in a visible state (on a different virtual desktop, for instance)?
  • What about applications that use GUIs not based on X?

A lot of the heavy lifting can be done with xwd, as already pointed out. There are also some existing tools to aid in tracking down X clients: xlsclients, xwininfo, xdpyinfo and possibly some other standard X tools. Some of these, xlsclients in specific, seem to not work as advertised in all settings.

--- rod.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
do threads in the process share the signal handler? feiyinzilgd Programming 1 08-22-2010 09:03 AM
which logs or cmd ? ayongying Linux - Hardware 2 03-11-2010 08:15 PM
glusterfs client not mount? acox Linux - Server 1 12-27-2008 03:32 AM
slackware 12.1 as as jboss server? i5i2 Slackware 1 09-22-2008 08:15 AM
How to use Omnitty?? reconcil Linux - Newbie 2 11-05-2007 10:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration