LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Matrix linux program (https://www.linuxquestions.org/questions/linux-general-1/matrix-linux-program-526324/)

Kyrocera 02-07-2007 03:35 AM

Matrix linux program
 
Hey peeps,

Wasnt sure where to put this or how to search for it.

Is there like a script or program you can run that opens windows, closes windows, types thing into the terminal etc... like in the matrix when neo is sleeping his computer is doing loads of stuff, you know what i mean?

Cheers for your help.

SciYro 02-07-2007 03:51 AM

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.


All times are GMT -5. The time now is 12:23 PM.