
Search a particular Window from an incomplete windows title
Quote:
> Suppose I have a window (Internet Explorer for example) with title:
> "Youtube - Queen - The show must go on".
> If I use API findwindow() I have to give in input the exact windows
> title to find it, right?
> Can I make a query to find it starting from a partial name?
> For example, if i have the string "Youtube" can i equally find that
> window?
The documentation does not specifically state whether a complete match will
be performed or not, but I would guess it is. More than likely you're going
to have to use the EnumDesktopWindows() function and then search the window
title yourself. I don't see that particular function on Randy's site, but
there is something similar:
http://vbnet.mvps.org/code/enums/enumwindowsdemo.htm