Hi GroG,
I am trying to get this to work;
def killtime():
for y in range(0,15):
if (data == "stop"): # this the that is not working
stop()
x = (random.randint(1,10))
if x == 1:
knocktoby()
sleep(60)
...........
I have put this further put in my script
def heard(data):
global lastHeard
lastHeard = data
This is a spin on Markus's "Break"
Thanks
replace all "data" with the
Did that, now I get a "Name
Did that, now I get a "Name error:global name'lastHeard" not defined"
at the very beginning of your
at the very beginning of your script you need to have
lastHeard = ""
Ok that works, It's not doing
Ok that works, It's not doing what I want but that part is working. Thanks