Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Cannot figure out why this won't work?

Name: Anonymous 2009-07-22 0:56

Yes I am a stupid newfag to /prog/ but I need help. I cannot figure out why my gamestarter won't work. Neither set nor choice will work when it prompts you to choose an option to start a game, it always chooses the first option, regardless of if you hit 1, 2, or 3.

http://www.mediafire.com/?y05yhzx1hnn

Would really appreciate it /prog/.

Name: Anonymous 2009-07-23 23:26

Wow. I googled commands in Python and managed to put this together, and it works!


print ""
print "PseudoBoris's Program Starter"
print ""
print "1: Spore"
print "2: Rosetta Stone"
print "3: Red Alert 3"
x = raw_input("Choose an option: ")
if x == '1':
    import subprocess
    subprocess.Popen('explorer "C:\Program Files (x86\Electronic Arts\SPORE\Sporebin"')
if x == '2':
    import subprocess
    subprocess.Popen('explorer "C:\Program Files (x86)\Rosetta Stone\Rosetta Stone Version 3"')                 
if x == '3':
    import subprocess
    subprocess.Popen('C:\Program Files (x86)\Electronic Arts\Red Alert 3\RA3.exe -win')


Is Python really this easy to do shit in?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List