Hi , i need to create a procedure which checks whether the active window (window in focus) has changed using GetForegroundWindow api & when this occur, use the FindWindowEx api to obtain all the child handles of the 'new' active window . Can anyone help me ?