Hello Anybody,
I wonder the smartest way to get the window handle number for another app created in MS Visual Studio 2008. I know the .exe name, the window title that has nonstandard ASC characters ('Kártyaolvasó'), but not sure about the classname.
FindWindow(nil,'Form1'); returns a number a bit below 2^31, assumably for my own app, but FindWindow(nil,'OtherAppTitle'); gives zero.
Surprisingly, FindWindow(nil,'Power'); also gives a handle, when Control Panel -> Power is open, and this window looks exactly the same as MyOtherApp's window. I'm afraid the Power window which is a builtin Windows component was created neither in Lazarus nor using FreePascal.
Any ideas why I don't get the handle for MSVS2008 App ?
Cheers, Peter