Register for your free account! | Forgot your password?

You last visited: Today at 02:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VbScript

Discussion on VbScript within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
VbScript

Hallo,

wieso klappt mein folgender Code nicht?

PHP Code:
<command>      
<
listenFor>Hallo</listenFor>        
<
script language="VBScript" >         
<![
CDATA[          Function Zufallszahl (ByVal minByVal max)        
 
Rnd                     
Zufallszahl 
Int(min + (max min 1) * z)     
End Function   
Zufallszahl (3,12)  
IF 
Zufallszahl 8 THEN  
set ISpeechVoice 
=  CreateObject("SAPI.SpVoice")         
variable =  ISpeechVoice.Speak("Hallo")  
ELSE IF 
Zufallszahl 9 THEN  
set  ISpeechVoice 
CreateObject("SAPI.SpVoice")        
 
variable =  ISpeechVoice.Speak("Guten Tag")  
END IF                         
]]>  
</script>   
</command> 
Der Code ist teil eines Windows Speech Makros. Der Computer soll nach erkennen des Wortes "Hallo" zufällig eine Antwort auswählen und diese dann wiedergeben (Guten Tag/Hallo...). die Zahlen sind erstmal nur Beispiele.

Wie kann ich weiter vorgehen?

Danke!
jojokineu is offline  
Old 01/10/2012, 20:10   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Alles in einer Zeile, genial. Wie soll man das so gescheit lesen können? ;o
MoepMeep is offline  
Old 01/10/2012, 21:13   #3
 
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
sorry. hab es leider erst jetzt ändern können. Könnt ihr mir helfen?
jojokineu is offline  
Reply


Similar Threads Similar Threads
VBscript
06/23/2011 - .NET Languages - 5 Replies
Hallo... Ich such ein Programm damit kann man ein VBscript auseinander nehmen. Ich hatte es mal aber ich habe es verloren weil ich meinen PC neu installiert habe...



All times are GMT +1. The time now is 02:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.