Esempio n. 1
0
def ensurealt(delay=.1):
    sleep(delay)
    say('Ensuring ALT is not pressed...')
    key('%')
    time.sleep(1)
    key('%')
    sleep(delay)
Esempio n. 2
0
def ensurealt(delay=.1):
    sleep(delay)
    say('Ensuring ALT is not pressed...')
    key('%')
    time.sleep(1)
    key('%')
    sleep(delay)
Esempio n. 3
0
def ensurealt(delay=.1):
	sleep(delay)
	key('%')
	sleep(0.1)
	key('%')
	sleep(delay)
Esempio n. 4
0
                point = (x, y)
        if point is not None:
            break
    return point


p = subprocess.Popen('C:\\Program Files\\Celemony\\Melodyne.3.2\\Melodyne.exe',
                     stdin=subprocess.PIPE,
                     stdout=subprocess.PIPE,
                     stderr=subprocess.PIPE)
streamrunner(p.stdout, prefix='Melodyne>').start()
streamrunner(p.stderr, prefix='Melodyne>2').start()
melodynepid = p.pid
sleep(11)
ensurealt()
key('{ESC}')  # Closes bug report window if it appears
find({'C:\\Cancel.png': (8, 8)},
     clickpoint=True)  # Closes bug report window if it is still not closed
sleep(3)
key('^o')
ensurealt()
sleep(4)
soundfile = None
for f in os.listdir('Z:\\files'):
    if f[-11:].lower() == '.glados.wav':
        soundfile = f
        break
if soundfile is None:
    say('No sound file found.')
    sys.exit(1)
say('Sound file is:', soundfile)
Esempio n. 5
0
                        break
                if not sofarsogood:
                    break
            if sofarsogood:
                say('Found point at',(x,y))
                point=(x,y)
        if point is not None:
            break
    return point
p=subprocess.Popen('C:\\Program Files\\Celemony\\Melodyne.3.2\\Melodyne.exe',stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
streamrunner(p.stdout, prefix='Melodyne>').start()
streamrunner(p.stderr, prefix='Melodyne>2').start()
melodynepid=p.pid
sleep(11)
ensurealt()
key('{ESC}') # Closes bug report window if it appears
find({'C:\\Cancel.png':(8,8)},clickpoint=True) # Closes bug report window if it is still not closed
sleep(3)
key('^o')
ensurealt()
sleep(4)
soundfile=None
for f in os.listdir('Z:\\files'):
    if f[-11:].lower()=='.glados.wav':
        soundfile=f
        break
if soundfile is None:
    say('No sound file found.')
    sys.exit(1)
say('Sound file is:',soundfile)
sys.stdout.flush()