Test Foro de elhacker.net SMF 2.1

Programación => Scripting => Mensaje iniciado por: BigBear en 10 Febrero 2012, 19:02 PM

Título: [Ruby] Funcion speak()
Publicado por: BigBear en 10 Febrero 2012, 19:02 PM
Una simple funcion para hacer hablar a la computadora , no se emocionen solo habla en ingles , cabe destacar que este funcion no anda en Window Seven , pero si en Vista y XP.

Código (ruby) [Seleccionar]

#!usr/bin/ruby
#Funcion speak()
#Coded by Doddy H

require "win32ole"

def speak(text)
  test = WIN32OLE.new("SAPI.Spvoice")
  test.Speak(text)
end

speak("Hi stupid ,i like fuck your mother")

#The End ?