Finding A Window


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Finding A Window
# 1  
Old 09-07-2006
Finding A Window

Hi,
I m trying to find a window in unix environment. Is there any method like

FindWindow(), SetForeGroundWindow() as in case of Windows. I have tried a

lot. But I failed. I have to do it without X Windows.


If anybody knows plzzzzzzzzz reply me.




Nihar...
# 2  
Old 09-07-2006
UNIX is not Windows. UNIX by itself doesn't even have a window environment. If you're looking for UNIX API calls for window management, you're never going to find them.

The one thing you've specifically excluded, X, is exactly where you need to look. When it comes to a GUI, there's nothing beneath it to talk to -- X is the thing that everything talks to when they create, destroy, move, and update windows, the thing which does all the drawing, knows where everything is, knows the window order, etc. Below it there's nothing but raw video drivers.

(Mostly X. There are a bunch of alternatives, some of which are still variations on X.)

Even all-singing-all-dancing GUI environments like KDE, IceWM and Gnome use X; what they amount to is convenience libraries. X can be used purely by itself even when running either of those.

Last edited by Corona688; 09-07-2006 at 04:33 AM..
# 3  
Old 09-07-2006
You might find the source for xse helpful.
part1
part2
part3
# 4  
Old 09-07-2006
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Larger window

I would like the window that this opens to be larger. Can it be modified to do so? Thanks. #!/usr/bin/env python3 # Text snippets are in /home/andy/.config/snippet_paste/ import os import subprocess home = os.environ directory = home+"/.config/snippet_paste" if not... (4 Replies)
Discussion started by: drew77
4 Replies

2. UNIX for Beginners Questions & Answers

Toggle between xterm window and standard terminal window

Is it possible to toggle back and forth between an xterm invoked from one tty, and a shell invoked from a different tty? I am running Centos 7 with KDE and booting in non-graphic mode. After logging in on the default window (/dev/tty1) , I can then use ALT-F2 to access a new window (/dev/tty2),... (1 Reply)
Discussion started by: rhgscty
1 Replies

3. Programming

Triangular window

I want to code a triangular window in an array. The array size is an odd number and indices start from 1. For example Having the number of elements N = 13 The middle position 7, the value will be 1.0 Then things decrease to zero using a rectangular variation. Having problem how to code it. (2 Replies)
Discussion started by: kristinu
2 Replies

4. Red Hat

Maximizing X window without Window Switcher

Hi everyone! I have a strange situation. I'm running an NX remote Gnome desktop session. On the remote machine, there is a whole load of unsaved data in a window. A problem that I've been having with this NX session is that I can't load Gnome Applets, including the Window Switcher. So.. when I... (0 Replies)
Discussion started by: alexandicity
0 Replies

5. Solaris

Help on X Window service

Hi, Need some help on the below issue or providing a pointer also would help We have an application which will run as a service in Solaris (Sun4v) SPARC (The application will be displaying the popup messages). For the service we are setting the display. As soon as the service starts we... (8 Replies)
Discussion started by: narendra.reddy
8 Replies

6. UNIX for Dummies Questions & Answers

X-Window help

I unloaded the KDM/KDE package and was starting it per instructions by first running a "xstart". My screen is blank and I don't know how to recover. Thanks. Tom (4 Replies)
Discussion started by: TJSexton
4 Replies

7. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

8. Solaris

How to get a second Icons - Window!

Hey everybody! I'd like to get a second Window for my program Icons, any Idea how to solve this problem?? :confused: thanks, Tom (3 Replies)
Discussion started by: TomStyria
3 Replies

9. Windows & DOS: Issues & Discussions

window 2000 professional not pinging my window 98 system.

Hello, We someone help me resolve this problem. I have window 2000 professional, windows 98 and Unixware 7.0.1 on the network. I was able to establish connection with all. However, l was unable to ping window 98 from window 2000 professional. I was able to ping the window 2000 from the window... (10 Replies)
Discussion started by: kayode
10 Replies

10. Programming

about X-window

Please, recommend anyone books about programming for X-window. (0 Replies)
Discussion started by: serge
0 Replies
Login or Register to Ask a Question