Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: Macro Hangs PH Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 14 2002 at 22:53 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 15 2002 at 10:13 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 15 2002 at 19:37 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 17 2002 at 08:16 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 17 2002 at 09:55 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 17 2002 at 17:24 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum