Thank you, Tomasz! The function also solves my problem of saying a long text string. For some reason, taking Say() out of the function leaves me with the problem, but SayOnce() "always" gets the entire message out!
Dale On 12/28/06, Tomasz Janeczko <[EMAIL PROTECTED]> wrote:
Hello, I have added some extra examples to AFL reference http://www.amibroker.com/f?say Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- *From:* Herman <[EMAIL PROTECTED]> *To:* [email protected] *Sent:* Tuesday, December 26, 2006 9:27 PM *Subject:* [amibroker] Example code for using Say() just FYI I use this type of code in Real-time trading and it seems to wokr just fine: *if*(*LastValue*(*Buy*)) Text = *"Buy, at, "*+*NumToStr*(* BuyPrice*,*1.2*); *else* *if*(*LastValue*(*Short*)) Text =*"Short, at, "*+*NumToStr*(* ShortPrice*,*1.2*);; PrevText = *StaticVarGetText*(*"PrevText"*); *if*( Text != PrevText ) { * Say*( Text ); * StaticVarSetText*(*"PrevText"*, text); } -----Original Message----- *From:* [email protected] [mailto:[EMAIL PROTECTED] Behalf Of *Herman *Sent:* December 26, 2006 2:51 PM *To:* [email protected] *Cc:* [EMAIL PROTECTED] *Subject:* RE: [amibroker] Say message interruption Perhaps TJ can add a msg queue or a SayStatus() command so that we can do the queueing ourself. You may be able to prevent repeats (using Static variables) and prevent calling Say() to fast, you could insert an automatically minimum call interval, using GetPerformanceCounter() or getStatus("RedrawAction"), that is proportional to the number of characters in your message. best regards, herman -----Original Message----- *From:* [email protected] [mailto:[EMAIL PROTECTED] Behalf Of *Dale Brubaker *Sent:* December 26, 2006 2:09 PM *To:* [email protected] *Cc:* [EMAIL PROTECTED] *Subject:* [amibroker] Say message interruption I love the new Say(text) command in 4.89 Beta, but often the message is cut off (apparently by the next pass through the AFL code) before it can be completely "uttered". Has anyone else seen this problem and figured out how to "buffer" it? Thanks, Dale
