q*c 发帖数: 9453 | 2 this works much better:
def OnDataCome(ID):
#print "session %ddata comes"%ID
#print
#print GetText(ID,0,23)
#print
try:
dataEvents[ID].set()
dataEvents[ID].clear()
s=GetText(ID,0)
ks = ['发信人: wisdomlover', '发信人: olympus', '发信人:
bdbd']
for k in ks:
if s.find(k)!=-1:
SendString(ID,'n')
break
|
|