Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim apptitle
  2. apptitle = "Calculator"
  3.  
  4. do while true
  5.     kill_app()
  6.     WScript.Sleep 10000 'pause script
  7. loop
  8.  
  9. sub kill_app()
  10.     Dim objShell
  11.     Set objShell = CreateObject("WScript.Shell")
  12.     objShell.AppActivate apptitle
  13.     success = objShell.appactivate(apptitle)
  14.     if success then
  15.         objShell.SendKeys "%{F4}"
  16.     end if
  17. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement