View Single Post
Old 06-13-2019, 10:44 PM   #576
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Edgemeal View Post
Cool!

@ julian Maybe I need a break but...
JS_Window_Find(String title, Boolean exact)
Returns a HWND to the top-level window whose title matches the specified string. This function does not search child window, and is not case sensitive.
OMG, what a horrible error in one of the most fundamental functions' definitions!

From the very beginning, Window_Find was actually coded to "* Searches child windows as well, so that script GUIs can be found even if docked."

I wonder how other users used the function in existing scripts. Should I change the function to match the help text (and add a new FindAny function), or change the help text to match the function (and add a new FindTop function)?
juliansader is offline   Reply With Quote