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

From: Fred L. Kleinschmidt (fred.l.kleinschmidt_at_nospam_boeing.com)
Date: 04/29/04


To: cbfk23 <cbfk23@usa.com>
Date: Thu, 29 Apr 2004 14:05:25 GMT


cbfk23 wrote:
>
> Chuck Dillon <spam@nimblegen.com> wrote in message news:<c6ouhm$rtq$1@grandcanyon.binc.net>...
> > 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
>
> Thanks a lot for the information which is helpful for me. I can't
> control the name of the X-window and the name seems to be not unique.
> I tried to run dtksk and I got "command not found".
>
> Any information on the little application" to do the raise?
>
> Neil

/usr/dt/bin/dtksh

-- 
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94  (206)544-5225


Relevant Pages