 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Deller
Joined: 21 Nov 2007 Posts: 214 Location: 0x01101110
|
Posted: Tue Feb 12, 2008 12:34 am Post subject: |
|
|
This simply uses the miscosoft text to talk.
Nice job trying to take credit for it though. wink |
|
| Back to top |
|
 |
Scorge
Joined: 28 Aug 2007 Posts: 10
|
Posted: Sun Aug 10, 2008 8:14 pm Post subject: |
|
|
I make a little interface change deleting the TALK button for simply pressing ENTER key, and added some String text while speaking
| Code: |
version = 1.0
Title = Talker %version%
Gui, Show, w350 h30 ,%Title%
Gui, Add, Text, x5 y5 w30 h20, Text:
Gui, Add, Edit, vsay x40 y5 w295 R1,
return
GuiClose:
ExitApp
Enter::
IfWinActive,%Title%
Goto,speak
else
Send,{ENTER}
Return
speak:
Gui, Submit, NoHide
GuiControl,,say,Pre-Processing...
TEMPFILE = %TEMP%\TALK.vbs
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "%say%", %TEMPFILE%
GuiControl,,say,Speaking... You should not type while I am speaking! Hold!
RunWait, %TEMPFILE%
GuiControl,,say,Deleting...
FileDelete, %TEMPFILE%
GuiControl,,say,R E A D Y !
GuiControl,,say,
Return
|
Nice Script of yours btw!  _________________
 |
|
| Back to top |
|
 |
totalmig
Joined: 22 Jul 2008 Posts: 122
|
Posted: Wed Oct 01, 2008 8:23 am Post subject: |
|
|
| Getting an error in launching Talk.vbs |
|
| Back to top |
|
 |
cptjacksparrow Guest
|
Posted: Fri Nov 07, 2008 2:03 pm Post subject: |
|
|
i can't get this to work. keeps giving me error at line 016
"no application is associated with the specified file for this operation |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Fri Nov 07, 2008 2:47 pm Post subject: |
|
|
a lil demo of how ahk talks to u via COM (no vbs needed)
| Code: | OnExit, CleanUp
COM_Init()
pspeaker := COM_CreateObject("SAPI.SpVoice")
txt=
(Join`n
Hello i am an AHK Script talking to You!
This is line 2 of the text i have to say
)
Loop,Parse,txt,`n
COM_Invoke(pspeaker, "Speak", A_LoopField)
ExitApp
CleanUp:
COM_Release(pspeaker)
COM_Term()
ExitApp
; download "com.ahk" from http://www.autohotkey.com/forum/viewtopic.php?t=22923
; and save it to same dir as this script and uncomment following line
;#include com.ahk |
_________________
|
|
| 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
|