Please tell me that how to capture the window title using “Window Info tool” and how can i use regular expression for window title part of Auto IT script to identify the window at run time.
My code is working Fine for IE but i want it to work for chrome too . is there any way to handle the window at run time using AutoIT
Try this:
$MY_TITLE_REGEX = "(?:Title1|Title2)"
Opt("WinTitleMatchMode", 4)
$handle = WinGetHandle("[REGEXPTITLE:" & $MY_TITLE_REGEX & "]")
This way you are able to use regular expressions for window titles (as defined in $my_regex) in order to get a handle to the desired window.
The AutoIt Window Info Tool can be used as follows to determine the title of a open window:
Hope this helps!