Jump to content

Problems


James
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.
Link to comment
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?

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
Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...