Skip to content

Instantly share code, notes, and snippets.

@yyq
Created July 2, 2018 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yyq/1a0a1b5f474c2a10278aca2122919e94 to your computer and use it in GitHub Desktop.
Save yyq/1a0a1b5f474c2a10278aca2122919e94 to your computer and use it in GitHub Desktop.
autoit3 script to close some window
Dim $i = 1
While $i < 10000
Local $s = WinWait( "DevPartner Performance and Coverage Analysis Session Control" , "", 0 )
If $s = 0 Then
MsgBox ( 0 , "" , " " )
Else
WinActivate($s)
ControlClick($s, "", "[CLASS:Button; INSTANCE:2]")
;MsgBox ( 0 , "" , " the handle number is " & $s & " the show times "& $i)
EndIf
$i = $i + 1
WEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment