LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2004, 02:31 AM   #1
OneMan_aus
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10.0
Posts: 2

Rep: Reputation: 0
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
 
Old 09-21-2004, 04:05 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
Old 09-21-2004, 05:02 AM   #3
OneMan_aus
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10.0
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 09-21-2004, 05:23 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
frontpage equivalent redfedora88 Linux - Software 8 08-30-2005 05:59 PM
An equivalent to Edit Plus tobycatlin Linux - Software 5 04-26-2005 11:57 AM
Strangesearch equivalent astrodave Linux - Software 3 01-11-2005 09:43 AM
ASUSProbbe equivalent curmudgeon42 Linux - General 2 08-15-2004 04:30 PM
equivalent to c? codename000 Programming 3 04-03-2003 11:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration