I know this is old, but google shows this topic as a result of the many ways I search for my question in the last many hours, so I ended up installing voiceattack and here to try solve a related question.
I hope someone can help
(The goal)What I really need to do is
1 - Press a button
3 - Start keylogging my keyboard (to get text within a game in the foreground)
2 - Press a button
4 - Stop keylogging my keyboard and saves it
5 - TSS reads the text into a microphone input
6 - What i have typed goes to in-game conversation voice chat.
(The base problem)This should be simple, but I'm having a hard time finding a way to do it all in the background without specific program text areas.
(My way to do it)My idea to solve this was:
Use a program to make [1 ... 4] and save it to a .txt file and then use voiceattack to read that file through a virtual input microphone (I will probably use the VB cable for this) .
(The Voiceattack Problem)Where in the program I put this:
"Set Text [~ textToSpeak] to [C:\ My Files\{TXTRANDOM: file1; file2; anotherfile}.txt]
Say, '{TXT: ~ textToSpeak}' "
I was using this to point on my .txt file:
"Set Text [~ textToSpeak] to [C:\Users\caiof\Desktop\{TXTRANDOM: MyTextToOutput}.txt]
Say, '{TXT: ~ textToSpeak}' "
I tried to put it in C and VB.net in advanced options, none worked.
I really think this is the best way to achieve the objetive if this problem is solved
Can someone please proceed with help or a tip if you think there is a better way?
.
Thanks a lot for your time!