Discussion:
How to send a message to another window?
(too old to reply)
perry zhou
2004-09-15 23:44:05 UTC
Permalink
I have no Xlib programming exprience at all, now I want to write a
linux program to send a keyboard message to another xwindow client.

Question 1). How can I find the window I want to send message to? In
Windows, there is a function called EnumWIndows which can help find
the window you have want to talk to. But How Can I find the window in
X environment? The window I want to find is mplayer window.

Question 2). Is function XSendEvent the right one to send a keyboard
message to the window after I find it?

Thanks for your time,
Carlos A M dos Santos
2004-09-16 12:57:01 UTC
Permalink
Post by perry zhou
I have no Xlib programming exprience at all, now I want to write a
linux program to send a keyboard message to another xwindow client.
Question 1). How can I find the window I want to send message to? In
Windows, there is a function called EnumWIndows which can help find
the window you have want to talk to. But How Can I find the window in
X environment? The window I want to find is mplayer window.
Question 2). Is function XSendEvent the right one to send a keyboard
message to the window after I find it?
See

http://groups.google.com.br/groups?hl=pt&lr=&ie=UTF-8&th=f323a1452b885170

http://groups.google.com.br/groups?hl=pt&lr=&ie=UTF-8&th=58a4d06d6bf4a2eb

--- Casantos

Loading...