>Hi George,
>
>I've found that article you wrote. I'm going to read it now. As for my code, the program always entered the function and processed every thing. But always returned 0. Unless I made the program interact with windows, i.e. the messagebox. It did't matter where the messagebox was. I even put it in your routine to see if the correct info was passed.
>
>I will look into that article. If I have any questions I'll drop you a line.
>
>Thanks for your help
Mike,
That's weird. All it does is loop through the top-level windows and retrieve the individual title bars and compare them. I've never seen an instance where it had to interact with another window to properly retrieve it. You might trying the following:
DECLARE INTEGER FindWindow IN Win32API;
STRING @lpclass, STRING @lptitle
lnhwnd = FindWindow(0, @lctitle)
Sever things are of note with this function: First, it searches only top-level window. Second, it is case sensitive (case must match exactly). Third, the complete title of the window must be provided as it exists on the window.
If a match is found lnhwnd will be non-zero. Is_Run32() is not case sensitive and only requires that the known portion of the title bar is provided. It was designed for interacting with applications that have dynamic title bars.
If you do have any questions regarding the article, feel free to contact me.
George
Ubi caritas et amor, deus ibi est