Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q] How to find Window ID given Process ID

0 views
Skip to first unread message

Anil P. Nichani - Imonics Corporation

unread,
Jun 27, 1996, 3:00:00 AM6/27/96
to

Hi,
I would like to find a way to find the Window ID of a Window
on the same screen.
This is the idea... my X Window Application forks another process.
I am interested in getting the Window ID of this forked process.
Can you give me some pointers towards solving this problem.

Thanx
Anil


--

#include <sys/disclaimer>
In other words: I speak only for my self, and for that matter only to
myself since no one else seems to care to listen.

Out the 10Base-T, through th router, down the T1, over the
leased line, off the bridge, past the firewall... "nothing but Net!"


Anil P. Nichani
Raleigh, North Carolina

George J Wu

unread,
Jun 29, 1996, 3:00:00 AM6/29/96
to
Anil P. Nichani - Imonics Corporation (a...@imonics.com) wrote:

: I would like to find a way to find the Window ID of a Window


: on the same screen.
: This is the idea... my X Window Application forks another process.
: I am interested in getting the Window ID of this forked process.
: Can you give me some pointers towards solving this problem.

You might want to take a look at what xwininfo does. It doesn't
go by process number, but it clearly manages to discover a window ID
somehow which you might find useful. Otherwise, you can try feeding
your window ID back to the parent process via a pipe, socket, or even
a file.

George

--
----
George J. Wu, Founder Software Development Connoisseur
Gourmet Software Design Consulting Expertise in
geor...@netcom.com GUIs, Galaxy, Motif, C++, OOP, UNIX,
415-964-4381 EDA CAD, and network management

--
::::::::::::::::::: Greg Andrews ge...@netcom.com :::::::::::::::::::
ObGuindon: Caution: This jacket has 37 Velcro(tm) closures.
Do not hug a moose with the flaps open.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Anil P. Nichani - Imonics Corporation

unread,
Jul 3, 1996, 3:00:00 AM7/3/96
to

Well, the process I am forking off is another company's product.
Hence, I do not have anyway of feeding it back to the parent through
a pipe.

Also, using "xwininfo()" can get the Window ID, given the name
of this forked window, but I could have many of them with the
same name.

Still hunting...

Thanx
Anil

George

--

0 new messages