>Naomi ,
>what's about Main window's title ?
>
>best regards
What do you mean? If you know the application main window's title (say, "My program title") you may try to use FindWindow function instead of the method I suggested. Let me give you few threads to look at.
If it's not broken, fix it until it is.
My Blog