 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
vlcek
Joined: 19 Feb 2007 Posts: 321 Location: Czech Republic
|
Posted: Wed May 28, 2008 4:00 pm Post subject: speak problem. |
|
|
Hi all.
I have this problem.
| Code: |
TEMPFILE = %TEMP%\TALK.vbs
IfExist, %TEMPFILE%
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "Hello, I'm computer voice", %TEMPFILE%
RunWait, %TEMPFILE%
FileDelete, %TEMPFILE%
|
The program have error in script talk.vbs.
But when I delete simbol , all is ok.
But I need write , too.
What is the problem?
Can you help? _________________ Thanks. |
|
| Back to top |
|
 |
YMP
Joined: 23 Dec 2006 Posts: 265 Location: Russia
|
Posted: Thu May 29, 2008 2:50 pm Post subject: |
|
|
You must escape the comma.
| Code: |
TEMPFILE = %TEMP%\TALK.vbs
IfExist, %TEMPFILE%
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "Hello`, I'm computer voice", %TEMPFILE%
RunWait, %TEMPFILE%
FileDelete, %TEMPFILE%
|
|
|
| Back to top |
|
 |
vlcek
Joined: 19 Feb 2007 Posts: 321 Location: Czech Republic
|
Posted: Thu May 29, 2008 3:24 pm Post subject: |
|
|
Thanks.
I have next problem, I want, when program speak focus.
| Code: |
controlgetfocus,talk,
gosub, speaktext
speaktext:
TEMPFILE = %TEMP%\TALK.vbs
IfExist, %TEMPFILE%
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "%talk%", %TEMPFILE%
RunWait, %TEMPFILE%
FileDelete, %TEMPFILE%
|
Any reactions.
Can you help?
I want, speak focused menu items, buttons, texts edit controls and in what focus is the cursor. _________________ Thanks. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|