Hi im looking for a way to find the caption / text of the active window and make a msgbox or something everytime the user changes to another window?..

ive been looking on these api's getactivewindow an getwindowtext but it's a little confusing for a me.

any one?..