text: (pos[0], pos[1] - x)with x being the speech.input. even thou i say the number. it gets in a string and i have tried to convert it to an integer but it still doesn't like it. Here's the rest of my code
  import time import speech import os from pymouse import PyMouse def Def(phrase, listener): m = PyMouse() def Move(phrase, listener): if phrase == "Up": speech.say("How far do you want to go up") print "getting x" x = speech.listenforanything(Def) print "printing x" print x if (x >0 & x<100000): print " getting mouse coordinents" m = PyMouse() m.position() pos = m.position() print pos[0] print pos[1] m.move(pos[0], pos[1] - x) else: print "x is wrong" print x def Get_speech(phrase, listener): if phrase == "Move Mouse": speech.say("Where do you want to move") L2 = speech.listenfor(["Up"], Move) L1 = speech.listenfor(["Move Mouse"], Get_speech)