Author |
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 14 2002 at 22:53 | IP Logged
|
|
|
Dave,
Here is a macro that locks up PH. I've also tried a Wait, but, that didn't work right either. Can you please verify and suggest options?
Thanks,
Tony
insert into macroheader values ('TEST','TEST',4,4,252,96,0,0,0,12632256,0,0,1,'MACROS');
insert into macrodetail values ('TEST',1,9,'',NULL,'testing');
insert into macrodetail values ('TEST',2,7,'',NULL,'3000');
insert into macrodetail values ('TEST',3,16,'',NULL,'if( {TEST FLAG}=0, 999, -2)');
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 15 2002 at 10:13 | IP Logged
|
|
|
Tony,
I imported your macro and took a look at it. You definately DON'T want to use the delay command as PowerHome will just go into an infinite loop without any way for the TEST FLAG GV to be changed. I changed the delay to a Wait command with a parameter of 5 (5 seconds, the wait command is in seconds, the delay command is in milliseconds), and had no problem with it working. I know you had a value of 3 seconds using the delay command, but I found that the Microsoft TTS gets a little flaky if too many TTS commands are sent in a short period. Not sure what problem you were having with the Wait command but the delay would definately be a problem. Let me know what your results are with the Wait and I'll see if I can figure it out.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 15 2002 at 19:37 | IP Logged
|
|
|
Thanks, Dave. The problem I was having with Wait was lock-ups. Using Delay only hung PH, not the whole system. I'll try it again with 5 seconds and let you know.
Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 17 2002 at 08:16 | IP Logged
|
|
|
Well, the only problem with the Wait now is that the delay is not 5 seconds as specified in the macro (it is more like 2). Using 7 gives me about 5 seconds. Make sense? Is MS' TTS engine that funky?
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 17 2002 at 09:55 | IP Logged
|
|
|
Tony,
It probably is only 5 seconds but seems like 2 because the MS TTS engine is executing asynchronously. The PowerHome timer is sending the TTS to MS every 5 seconds but it takes the MS TTS engine 3 seconds to speak your phrase. Basically as soon as PowerHome sends the command to the TTS engine, it continues executing and does not wait for the TTS to complete.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 17 2002 at 17:24 | IP Logged
|
|
|
That's what I was thinking. It works now, so, that's the important part.
Thanks again!
Is it soup yet??
Tony
|
Back to Top |
|
|
|
|