On 6/30/11, Andrej Mitrovic <[email protected]> wrote: > Ok I did found one workaround: > > HWND mainWindow = FindWindow(appName.toUTF16z, windowName.toUTF16z); >
Sorry that should be: HWND mainWindow = FindWindow(className.toUTF16z, windowName.toUTF16z); It just so happens that I've named the class name for the main window the same as the application name.
