WinTitle per se isn't something that is captured. The term WinTitle is different than the window's title, so you should be clear what you are looking for. There are many ways you can identify a window when you are identifying one using a WinTitle parameter. The question is what are you specifically trying to find? The hwnd is probably what you really are looking for if you want to see if the window that is now open is the same as the one from before. You can get that like this:
Code: Select all
MyHwnd := WinExist("ahk_class Window")
You can alternatively get the title of the window (not the same as WinTitle), the class name for the window, the process name for the process that created the window, or the process ID for the process that created the window. Again, you probably only need the hwnd (ID) of the window. If all you need is the actual title, then what amateur+ showed is the answer. But it would seem you still want the hwnd because you would be wanting to check if the title for the window with a particular hwnd has changed.