X-Windows Enumeration


 
Thread Tools Search this Thread
Top Forums Programming X-Windows Enumeration
# 1  
Old 09-29-2005
X-Windows Enumeration

Hi,

I'm new to x-windows system and I have a few questions:

1. How can I write a C program to enumerate all the windows on the local and remote computers? In other words: How can I create a list of all the windows in the system (maximized/minimized/active/not active ....)?

2. How can I recognize events like keystrokes and mouse events?

3. How can I get the mouse cursor position?

All these things must be done in C.

Any help appreciated.
Thank's!
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

startX windows application during boot.....putty connection takes the windows

Dear all i am new to linux/debian i run my application on the computer...during startup in bashrc i wrk wid dis script to invoke startx..i do this above command and it works perfectly... if && ; then startx -- -br 1>/dev/null exit 0 fi i use winscp for file transfer and putty for... (1 Reply)
Discussion started by: venkat_330
1 Replies

2. Programming

enumeration types in C

If I want to declare an array of structures in C and have the number of items in that array to correspond to the items of an enumeration, is there a way to access the maximum value in the enumeration when declaring the array? For instance: typedef struct { various fields.... } ... (3 Replies)
Discussion started by: cleopard
3 Replies
Login or Register to Ask a Question
ppmtobmp(1)						      General Commands Manual						       ppmtobmp(1)

NAME
ppmtobmp - convert a portable pixmap into a BMP file SYNOPSIS
ppmtobmp [-windows] [-os2] [-bpp=bits_per_pixel] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces a Microsoft Windows or OS/2 BMP file as output. OPTIONS
All options can be abbreviated to their shortest unique prefix and you can use a double dash in place of the single dash, GNU-style. -windows Tells the program to produce a Microsoft Windows BMP file. (This is the default.) -os2 Tells the program to produce an OS/2 BMP file. (Before August 2000, this was the default). -bpp This determines how many bits per pixel you want the BMP file to contain. Only 1, 4, 8, and 24 are possible. By default, ppmtobmp chooses the smallest number with which it can represent all the colors in the input image. If you specify a number too small to represent all the colors in the input image, ppmtobmp tells you and terminates. You can use ppmquant or ppmdither to reduce the number of colors in the image. NOTES
To get a faithful reproduction of the input image, the maxval of the input image must be 255. If it is something else, ppmtobmp the colors in the BMP file may be slightly different from the colors in the input. Windows icons are not BMP files. Use ppmtowinicon to create those. SEE ALSO
bmptoppm(1), ppmtowinicon(1), ppmquant(1), ppmdither(1), ppm(5) AUTHOR
Copyright (C) 1992 by David W. Sanderson. 13 June 2000 ppmtobmp(1)