Win32's FindWindow()
can find a window having the title of "Untitled - Notepad", but what if I just want to find a Notepad window but don't know whether it is "try.bat - Notepad" or some other file name on the title bar?
It seems that if the title is passed in a NULL value, then any window will be returned, but only one window is returned, so there is no way to grep
for the title using regular expression.
(I am doing this using Ruby's Win32API)