Re: Help: raising x-window on top of a display through HPUX shell command?

From: Chuck Dillon (spam_at_nimblegen.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 13:53:30 -0500

cbfk23 wrote:

> Does anyone know anyway to raise an x-window on top of a display
> through any shell commands or shell script?
> Information about the particular x-window I'd like to raise should be
> anything can be got by "ps" command.
>
> Your help is very much appreciated.
>
> Neil

To raise the window you need to determine it's window id. If you can
reliably determine the name/title of the window from ps you can look up
the id using that string (see man xwininfo and the -name feature).

Play with "xwininfo -root -tree", xlswins and xlsclients to
characterize what you can determine about the application's X properties.

Can you use one of those X clients to identify the window rather than ps?

Assuming you can identify the id, there's no standard X client for
raising the window. Does HP-UX include the dtksh (which is a ksh with
built in X call support)? If so, you could call XRaiseWindow from it.
  Otherwise you probably need to write a little X application to do the
raise.

You might want to follow-up to comp.windows.x and/or an HP-UX specific
group.

-- ced

-- 
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.


Relevant Pages