Active window & Global hook lazarus / 13-General ---------------------------------------------------------------------- eden159 · 2007-03-20 09:03 Hi, I want to know how can I get the active window caption in Linux (for windows I found this link: http://www.swissdelphicenter.ch/torry/showcode.php?id=2143). I also want to know if there is a way to hook globally the change of different windows in Linux and Windows with Lazarus and if there is no way to do it directly with Lazarus can you give some code or a link how to program this hook for Linux (I can find for Windows myself). I want to make an application that stays in the system tray and records how much time the user spends on different windows. ---------------------------------------------------------------------- theo · 2007-03-20 12:32 You might have a look at "Kylix components" -> "xwinfo" here: http://www.tempest-sw.com/freeware/ It's for Kylix, but at least it's pascal and the Xlib stuff should be similar.