Noviceatthis Posted December 28, 2013 Share Posted December 28, 2013 I'm trying to write a script that reads text from the clipboard and then gets the computer to say it, here's what I have so far: #include <Clipboard.au3> $oldclip = "" While 1 Global $currentclip = _ClipBoard_GetData() If $currentclip = "0" Then Sleep(1000) ElseIf $currentclip = $oldclip Then Sleep(1000) Else speak() EndIf $oldclip = $currentclip WEnd Func speak() $voice = ObjCreate("SAPI.SpVoice") $voice.speak($currentclip) EndFunc ;==>speak It works for single lines of text, but not for text including a paragraph, i.e. "This works" "But this doesnt" I was wondering whether there was a solution to this Thanks in advance Link to comment Share on other sites More sharing options...
Solution Noviceatthis Posted December 28, 2013 Author Solution Share Posted December 28, 2013 Ah, no, it does work, apologies Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now