PDA

View Full Version : Global key listener and getting information on windows in OpenBox



extruct
February 20th, 2009, 02:17 PM
Hi all.
I never worked with this stuff so I have no idea what to search so I ask here.
How I can do a program that just sits on background and on specific key press prints some message or do something else (not important for now the action) in OpenBox (if it matters)?
Another program I would like to write is a program that can handle window actions, like getting window name (and probably ID if there is any), do X when new window created, do Y when window closed, Z when focused and etc, again in OpenBox.
Sorry for those lame question but I really never worked with specific DE/WM so I have no idea.
I don't need code just point me to the right direction
Thanks a lot!

Oh forgot, I'm going to write in C/C++ so if there is libraries preferably that they will exists for C/C++