LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   FindWindow equivalent (https://www.linuxquestions.org/questions/programming-9/findwindow-equivalent-233243/)

OneMan_aus 09-21-2004 02:31 AM

FindWindow equivalent
 
Hi,
I need an equivalent to the FindWindow method of windows. I want to manipulate a window that is external to my program. I'm doing this in c++ on Mandrake.

Or the same as enumwindows and I can find the info by checkin each window.

Cheers

steve

Proud 09-21-2004 04:05 AM

First thought was that this is impossible as the window's non-shared memory of a different process and the kernel should forbid your tampering, but then the only ray of light is from AmusingMisuseOfResources which can generate a worm which moves along the top of a window. Might just be polling the X server and not able to affect another app's window still.

Why do you need to do this anyway? Let us understand the problem better.

OneMan_aus 09-21-2004 05:02 AM

I've got an app that I run constantly, I just want to hide its window so its not cluttering up the screen and taskbar.
So not really manipulate a window as such, just send it a message to hide.

I've done this in windows, and its very easy. using findwindow/showwindow methods.

Proud 09-21-2004 05:23 AM

Then maybe look into how window managers send the correct signals, or if it's a KDE app look into their system of scripting and signals/slots.


All times are GMT -5. The time now is 03:35 AM.