Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gui, add, button, gButton1, hello
- gui, add, button, gbutton2, cow dissapear
- gui, show, w200 h200
- RETURN ; <---- Needed to End the AutoExecute section
- ; so your script doesn't plow right ahead to
- ; the next lines of code
- button1:
- {
- ExclamationPoints = 0
- setTimer SpamCow, 10
- return ; <---------- Return goes inside the {}
- }
- button2:
- {
- SetTimer SpamCow, Off
- ToolTip
- return
- }
- SpamCow:
- {
- ExclamationPoints := ExclamationPoints + 1
- if ExclamationPoints = 50
- ExclamationPoints = 0
- Tail=
- Loop %ExclamationPoints%
- {
- Tail = %Tail%!
- }
- tooltip Cow%Tail%
- Return
- }
- ;Closing
- guiescape:
- guiclose:
- menuexitprogram: ; this label MenuExitProgram is technically not necessary
- ; but there's no harm in using it :)
- {
- exitapp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement