On Thu, Nov 23, 2017 at 09:38:27PM +0530, Bhupendra Kumar Jain wrote:
> Hi Thomas,
> 
> Sorry I missed adding the group in my last email. Resending.

That's OK.  You can also drop my email address from the Cc list, and just use
"fvwm@fvwm.org" -- I don't do private FVWM consultancy.

> I just know the window name and it is not necessary that the window is the
> same window which I am currently working on so I am not sure if ThisWindow
> would help.

It won't, but you've given me a piece of information you did not before.
Plus, my examples are just that.  I am expecting you to know enough of what I
tell you to apply it to your situation.  I can see now this is something
you're struggling with.

> 
> I tried the command which you gave for one of the windows(I tried being in
> the same as well as different window also), it ran with no output but I
> didn't get any result.
> 
> FvwmCommand 'ThisWindow "abc" Echo $[w.id]'

Aside from anything else, that's not the example I gave you, nor is it valid
FVWM syntax.  I'm fine with you asking for clarification on something, but I
do not like it when you don't put the effort in.

You have some options:


   Next (WindowName) Echo $[w.id]

This would take the next window in the ring and echo its window id.  I am
expecting you to replace "Echo" with something that uses "$[w.id]" -- the
point of the example is to show you that "$[w.id]" expands to the ID of the
specified window.

Incidentally, the output from FVWM's Echo command will go to stderr, so you
should check something like ~/.xsession-errors file to see it.

-- Thomas Adam

Reply via email to