Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import os
- import random
- #Funtion ad 2
- def ad2():
- count = random.randint(60, 70) ##Segundos, Random para correr.
- i = count
- while True:
- while i > 0:
- os.system('cls')
- print "Next Ad Will Run In", i
- time.sleep(1)
- i -= 1
- os.system('cls')
- #os.system(r"starta.ahk") ## Segundo ad aqui.
- print "Running Second ad."
- time.sleep(3)
- #os.system('cls')
- #i = count
- time.sleep(1)
- break
- #Fiunction ad 1
- def ad1():
- count = random.randint(80, 120) ##Tiempo Random, para el primer ad.
- i = count
- while True:
- while i > 0:
- os.system('cls')
- print "Next Ad Will Run In", i
- time.sleep(1)
- i -= 1
- os.system('cls')
- #os.system(r"starta.ahk") ##Primer Ad aqui.
- # print "Running First ad."
- time.sleep(3)
- #os.system('cls')
- #i = count
- time.sleep(1)
- break
- count = random.randint(200, 230)
- i = 0
- #os.system(r"file.ahk") ##Primer ad aqui corre cuando abres el app por primera vez.
- print "Running First ad.."
- time.sleep(3)
- while True:
- while i > 0:
- os.system('cls')
- print "Next Cycle In", i
- time.sleep(1)
- i -= 1
- ad2()
- ad1()
- i = count
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment