Nop... script ^^ '... 100, "":
ctrl + number
= > 9... - 2 , Firefox 10 .
And by the way, when the script is running, there is a moment when it releases the ctrl key. It does not send ten, but ctrl and 1 end zero ... and a splash !!! It just sends the number in the window. Therefore, we need to learn the script that the second time it returned to $ i = 0 or one, all the tabs were visible, no need to continue, even if the text you are looking for was not found. Therefore, I created my own script based on the old:
AutoItSetOption("WinTitleMatchMode", 2)
$searchString = "The string you're looking for"
Local $o = 0
WinActivate("The Name of the process where you're searching")
For $i = 0 To 9
Send("^" & $i)
Sleep(250)
if ($i = 9) Then
$o += 1
EndIf
If not (StringInStr(WinGetTitle("[ACTIVE]"), $searchString) = 0) Then
MsgBox("","","Found it !") ;your action, the text was found.
ExitLoop
ElseIf ($o = 1) Then
MsgBox("","","All tab seen, not found...") ;your action, the text was not found, even after looking all title.
ExitLoop
EndIf
Next
source
share