From: William James Date: 2006-02-21T07:58:32+09:00 Subject: Re: Making my internal speaker beep Matt Ramos wrote: > Hello. I'm trying to execute a beep on my computer with ruby as an > alert, but I can't seem to get it to work. > > I've looked online and I have this. > > require "Win32API" > def beep > o = Win32API.new("kernel32","Beep",%w(i i) , 'v') > o.call(2000,50) > end > > It seems to be calling the API exactly how I need, but it won't execute > the beep. Any tips/ideas? > > Thanks, > Matt > > -- > Posted via http://www.ruby-forum.com/. print "\a"