Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: TTS Macro Line Causes Error 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: May 26 2002 at 09:51 | IP Logged Quote TonyNo

Due to response times, I recently modified the sample GetWeather macro to store the result in a Global variable (GV) every hour. In the macro, I also put just the temp and humidity in another GV [Temp Str]. When I create a new macro called Tell Temp, add a TTS line that speaks the contents of the GV, and try to refresh, the error happens (count field incorrect, not enough values for host variables). At first, I thought it was due to my using Temp in the names, but, that wasn't true. It seems related to the data in the GV, although, replacing the contents with "test" still causes the error.

Any suggestions?

Thanks,
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: May 27 2002 at 13:41 | IP Logged Quote dhoward

Tony,

Export and email me the associated macros. I'll take a look and see what I can tell you. Its probably not a bug, just something not being recognized properly

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 29 2002 at 11:18 | IP Logged Quote dhoward

Tony,

Found the problem. It's not a problem with running your macro but a problem with ODBC escape characters and saving your macro. In your TTS macro line, if you have {TEMP STR} in the send keys field, the "{T" is interpreted as an ODBC escape code. You can either change your global variable to start with something other than "T" or change the send keys field to {}{TEMP STR}. The blank open and close brace is a dummy value designed to prevent just this problem.

Hope this helps,

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: May 29 2002 at 23:33 | IP Logged Quote TonyNo

Whoa! Thanks! Added the extra braces and all is well!

I'll have to find a list of ODBC escape characters! ;-)

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: May 30 2002 at 10:14 | IP Logged Quote dhoward

I know what you mean...Another one that Im aware of off the top of my head is {d which is often used in the send keys command {delay+xx}. This seems to burn me a lot. But if you ever get that error message again, its a sure bet that is the problem.

As a side note, my solution was not optimal in your current context. As you pointed out in your email, the double braces are spoken by the text to speech engine. When plagued by the ODBC escape sequence in a Send Keys command, the double braces are appropriate. When the problem presents itself in a variable substitution such as the TTS command, just put a space in from of the GV {TEMP STR}. This will break up the escape sequence and will be ignored by the TTS (the space would not be ignored by a Send Keys command and would actually simulate the pressing of the space key).

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: May 30 2002 at 20:03 | IP Logged Quote TonyNo

Thanks, Dave.

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