def flashRightTextChanged(self, obj):
text = obj.name
if not text:
return
if self.lastFlashRightText == text:
return
self.lastFlashRightText = text
mOff="Dragon\'s microphone is off;"
mOn="Normal mode: You can dictate and use voice"
mSleep="The microphone is asleep;"
if mOn in text:
ui.message("Dragon mic on")
elif mOff in text:
ui.message("Dragon mic off")
elif mSleep in text:
ui.message("Dragon sleeping")
评论列表
文章目录