Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gui, add, button, gButton1, hello
  2. gui, add, button, gbutton2, cow dissapear
  3. gui, show, w200 h200
  4.  
  5. RETURN ; <---- Needed to End the AutoExecute section
  6.        ; so your script doesn't plow right ahead to
  7.        ; the next lines of code
  8.  
  9.  
  10. button1:
  11. {
  12.     ExclamationPoints = 0
  13.     setTimer SpamCow, 10
  14.     return ; <---------- Return goes inside the {}
  15. }
  16.  
  17. button2:
  18. {
  19.  
  20.     SetTimer SpamCow, Off
  21.     ToolTip
  22.     return
  23. }
  24.  
  25. SpamCow:
  26. {
  27.     ExclamationPoints := ExclamationPoints + 1
  28.     if ExclamationPoints = 50
  29.         ExclamationPoints = 0
  30.     Tail=
  31.     Loop %ExclamationPoints%
  32.     {
  33.         Tail = %Tail%!
  34.     }
  35.    
  36.     tooltip Cow%Tail%
  37.     Return
  38.  }
  39. ;Closing
  40. guiescape:
  41. guiclose:
  42. menuexitprogram: ; this label MenuExitProgram is technically not necessary
  43.                  ; but there's no harm in using it :)
  44. {    
  45.   exitapp
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement