Difference between revisions of "Lua:speakEnglish"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>')
Line 1: Line 1:
[[Category:Lua]]
+
<span style="font-size:25px;color:red">Sorry! Content not available.</span>
'''function''' speakEnglish(''text'', ''waittilldone'' OPTIONAL)
 
 
 
 
 
Will try the English voice by wrapping the given text into an XML statement specifying the English voice. It'll not say anything, if no English language is present on your computer.
 
 
 
===Function Parameters===
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!align="left"|Type
 
!style="width: 60%;background-color:white;" align="left"|Description
 
|-
 
|text
 
|String
 
|Text that should be spoken.
 
|-
 
|waittilldone
 
|Boolean
 
|If true, the next LUA instruction will not execute until the text is spoken.
 
|}
 
 
 
===Samples===
 
Without ''waittilldone'': 
 
<pre>speakEnglish("Hello World")</pre>
 
 
 
With ''waittilldone'': 
 
<pre>
 
speakEnglish("Say hello", true)
 
showMessage("to my little friend")
 
</pre>
 
 
 
{{LuaSeeAlso}}
 
 
 
=== Related Functions ===
 
* [[Lua:speak|speak]]
 

Revision as of 16:06, 16 March 2019

Sorry! Content not available.