hi tim. there is a object called <active> which does exactly that. it outputs a 1 when the window is active and 0 when its not. there is a help file in the reference directory called active.pd to show you how it works. its included in the cyclone lib.
cheers marco
TimBlechmann@gmx.net wrote:
hi
i'd like to do use the same key in different patches that are working simultaneous. is there any way for pd to ask the gui if a window is focused?
thanks a lot... tim