You can always use perl or python... but a shell script, dialog or something similar can display things in X. Im not sure exactly what you want tho. Perhaps you should look into creating your own set of programs to do this.
Anyways, xmessage that ships with X can display a message in X, tho its rather ugly, dialog and other copycat programs (like kdialog and gtkdialog) i think gives more flexibility.
FVWM can send fake mouse clicks and text input to windows, it also has a module that allows you to create GUI forms, and its also scriptable.
Its fairly simple to do fake event sending in X, tho, im unable to find any program from my short skimper thru the utils that start with "x" that can do this, but it is possible to do. However, programs can also tell when something has been faked, the X server lets them know, but they have to manually check the data they get from the X server to see if it was faked. This is so applications can secure themselfs, most allow fake events.
edit: also, its possible for other programs to control windows of another program, a good example is getting mplayer to play within the root window by telling mplayer the window ID of the window to display in. Another program that i know of that allows you to input the window ID is display, a image viewer from imagemagick. Its possible, but not every program allows you to say what window to use. I know worker (a file manager) does this to get image viewing programs like display to work within a window created and managed by worker. Its really just a matter of what do you want, and does something already exist that can do it. Like i said, if you have time on your hands, you can always look into creating your own tools to create/destroy windows, and do other things.
Last edited by SciYro; 02-07-2007 at 03:56 AM.
|