Skip to content

Instantly share code, notes, and snippets.

@phts
Created January 3, 2016 19:23
Show Gist options
  • Save phts/c2f20f3e5352a8f128d9 to your computer and use it in GitHub Desktop.
Save phts/c2f20f3e5352a8f128d9 to your computer and use it in GitHub Desktop.
Close TeamViewer's "Sponsored Session" popup
Set sh = CreateObject("WScript.Shell")
For counter = 1 To 10
activated = sh.AppActivate("Спонсируемый сеанс")
If activated = True Then
For t = 1 To 2
sh.SendKeys "{TAB}"
Next
sh.SendKeys " "
WScript.Quit
End If
WScript.Sleep 1000
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment