get_number_by_text
get_number_by_text($text,$exactly=false,$visibled=true,$mained=true); - this function is used to get the window number from its text.
the input Function accepts parameters:
$text – the text of the desired window (or part of the text).
$exactly – exact match of the text of the search window (true) or search by part of the text (false).
$visibled – parameter indicating that the execution of this command, consider only the visible Windows (true) or the visible and invisible (false).
$mained – option indicating that the execution of this command, take into account only the main window (true) or the main and not main (false).
After testing, the function returns the result of its work to the script :
window text – the text of the window with the specified number and type