James Posted January 13, 2007 Share Posted January 13, 2007 Im having a little problem Case $Speaktxt $empty = "" If $DocEd1 == $empty Then Speak("There is no text too read", 0, 100) Else $txt2speech = GuiCtrlRead($DocEd1) Speak($txt2speech, 0, 100) EndIf The idea is, if $DocEd1 = $empty then Speak("There is no text too read", 0, 100) and if its not empty then Speak the text. Technically it should work but it doesn't. Any ideas? Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BALA Posted January 13, 2007 Share Posted January 13, 2007 (edited) You forgot to make a function for "speak()". Func Speak($Text, $Rate, $Vol) ; Replace $Text with desired text, $Rate with desired rate, $Vol with desired volume ; I think you also need to have $voice like this: $voice.Rate = $Rate $voice.Volume = $Vol $voice.Speak($Text) EndFunc Edited January 13, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
martin Posted January 13, 2007 Share Posted January 13, 2007 (edited) Im having a little problem Case $Speaktxt $empty = "" If $DocEd1 == $empty Then Speak("There is no text too read", 0, 100) Else $txt2speech = GuiCtrlRead($DocEd1) Speak($txt2speech, 0, 100) EndIf The idea is, if $DocEd1 = $empty then Speak("There is no text too read", 0, 100) and if its not empty then Speak the text. Technically it should work but it doesn't. Any ideas? Secure EDIT: lines below were incorrectly included in quoted section above before the edit. Case $Speaktxt $empty = "" $txt2speech = GuiCtrlRead($DocEd1) If $txt2speech == $empty Then Speak("There is no text too read", 0, 100) Else Speak($txt2speech, 0, 100) EndIf Edited January 13, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
James Posted January 13, 2007 Author Share Posted January 13, 2007 (edited) There is a function for speak.Edit: Thanks martin Edited January 13, 2007 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BALA Posted January 13, 2007 Share Posted January 13, 2007 (edited) Sorry, but I'm confused, how did Martin help by quoting your post? EDIT: Wait, I see now, that portion of the code won't work properly right? Edited January 13, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
martin Posted January 13, 2007 Share Posted January 13, 2007 Sorry, but I'm confused, how did Martin help by quoting your post? EDIT: Wait, I see now, that portion of the code won't work properly right?It helped because I modified the script but by mistake inserted the change inside the quoted section. I'll change it. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
James Posted January 13, 2007 Author Share Posted January 13, 2007 Yeah, I didn't see it at first. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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