Hi, >> song_array = " " * 256 >> getWindowText.call(hWnd, song_array, 4096) >> >> Also, the constant "4096" and "256" are just values that seemed to >> work for me. > The third to GetWindowText() isn't the length of the second > buffer? If so, it should be definitely wrong. Hence my comment... I wasn't very clear on what it should actually be. Maybe someone with a better knowledge of what is actually done there can comment on that? -- Bye: Andi S. mailto:nullpointer / myrealbox.com