get_number
get_number($visibled=true,$mained=true); - this function is used to get the window number (the number depends on the order in which the window is searched - visible or invisible and main or non - main) - available from version 4.6.37.
the input Function accepts parameters:
$visibled – parameter indicating that when executing this command, only visible Windows should be considered (true) or both visible and invisible (false).
$mained – a parameter indicating that when executing this command, only the main Windows should be considered (true) or both main and non-main Windows (false).
After testing, the function returns the result of its work to the script :
window number – the window number in the specified window sequence(int).