program state: minimised or not



Is there a way to get the state of a window/program?
To determine if the program is minimised or not.
To determine if the program currently has focus or not?

And a way to run commands upon the program window obtaining focus?

many thanks
-- 
                Azrael

           ("\''/").___..--'''"-._          
           `0_ O  )   `-.  (     ).`-.__.`) 
           (_Y_.)'  ._   )  `._ `. ``-..-'  
         _..`--'_..-_/  /--'_.' .'          
        ((i).-''  ((i).'  (((.-'         
   
Of all God's creatures there is only one that cannot be made the slave
of the lash. That one is the cat. If man could be crossed with a cat it
would improve man, but it would deteriorate the cat. 

ICQ#52944566




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]