Tom, If you remove the "with messages" from the wait statement it works fine - for me at least!
I think that’s what is screwing up the message queue. Paul On 2013-02-26, at 8:38 AM, Thomas McGrath III wrote: > Has anyone ever experienced this type of weirdness with keyDown trapping? > > I have this script in a substack of my main stack that should speak all > characters typed into this field: > > on keyDown pKey > if charToNum(pKey) = 32 then > TASpeak "Space." > TASpeak field "SignIn" of this stack > else > TASpeak pKey > end if > pass keyDown > end keyDown > > > Later in a separate main stack: > > on TASpeak pTextToSpeak > if gNoSpeech then > -- speech mode off > else > -- process Rate, Pitch etc. > revSpeak pTextToSpeak > wait until revIsSpeaking() is false with messages > end if > end TASpeak > > Now, If I type "Tom M" into the field slowly I get: Tom M > and it speaks each char > and then on entering a space it speaks the whole field > > BUT, (here's the weirdness) If I type very fast I get: M moT > and it speaks it in that order > > This is just absolutely weird. Has anyone else seen this? > > Tom > > -- Tom McGrath III > http://lazyriver.on-rev.com > mcgra...@mac.com > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode