Thank you, i didn't know that this also applies to child windows.
Btw, I was using the API call "FindWindow" for a selfmade "Now Playing" script in WinAmp. I got the Window Handle by calling
hwnd = FindWindow("WinAmp 1.x", vbNullString)
note that "1.x" worked for every winamp version. has anyone of you already experimented with this kind of stuff? I already tried "XmPlay" and the current song title as a window title, but the hwnd was always 0 (not found)...
edit: the first parameter defines a "class", the second one is the actual window title. it's a nullstring because it contains the song name, but that changes all the time, so i need to look for the class of course...
or is there any other "no playing" script that's open-source so i can modify it to my taste?