Variable to VBS?(Solved)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Twinbrow
Posts: 6
Joined: 14 Jan 2017, 13:41

Variable to VBS?(Solved)

14 Jan 2017, 14:07

Solved - Looking into the tts.exe functions further I was able to open the file directly from it vs. using clopboard.

I am doing a clipboard and the file is to big. Is ther a way to pull that varible into say a VBS script to overcome the limitation. I am a super noob and am just seeing what I can do here. Although there are several programs out there that will do what i want, I am having fun with this. I convert and listen to audio books all the time and thats what got me here.

Using the text to speech (tts.exe)
Below is a portion of the script I am stuck on. I was able to create a small interface that will allow the choice of Wav or MP3 and it works great. However the issue is when the file gets to big it tosses an error that the string is too large. I tried the VarSetCapacity but realized that simply increases the size capacity and does not solve the string length issue.

Again, the issue is when %clipboard% gets to big

Code: Select all

;VarSetCapacity( clipboard, 1000000 , asc(".") )
RUN, tts.exe -f 10 -v <Microsoft David Desktop> 1 " . %clipboard% . " -o %cut% %t%,, Hide

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Lamron750, septrinus, songdg and 260 guests