Sign in to follow this  
Followers 0
James

Problems

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0