hWnd = FindWindow(ClassName$z, Title$z)
Leave the ClassName param null if you want to return any window named "Find Me", regardless of class.
Extern "win32" Function FindWindow(lpClassName$z, lpWindowName$z) = "FindWindowA@8" End Extern AppTitle = "Find Me" Graphics 320, 240, 0, 60 hWnd = FindWindow("BBDX7Device Window Class", "Find Me") If Not hWnd Then Notify "Window not found"(Windows)
Leave the ClassName param null if you want to return any window named "Find Me", regardless of class.