Post: Command Prompt Color Seizure [Python]
01-14-2011, 02:11 AM #1
schnzrs
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); I was just messing around making annoying programs. Here is a Python script that spazzes out a command prompt with flashing random colors. Enjoy!

    import os
import random
import time

sleepTime=.1

def changeColor():
os.system("mode 200")
os.system("cls")
os.system("@echo off")
print "COLORS " * 2000
while 1:
randNum=random.randint(1, 99)
randNum=str(randNum)
os.system("color " + randNum)
time.sleep(sleepTime)

changeColor()

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo