computer beep?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Kwhiz
Junior Coder
Posts: 35
Joined: Wed Jan 12, 2005 6:19 pm

computer beep?

Post by Kwhiz » Sat Oct 29, 2005 3:56 pm

When I empty my recycle bin, I get a small computer beep which doesn't come through my speakers, it comes directly out of my computer box/case. Is there a way of making the same (or simliar beep) sound with MacroScheduler? ...If I use the PlayWav command the sound will come out of my speakers. I'm trying to get a beeping sound directly out of my computer.

I checked under Control Panel/Sounds, and where it says "empty recycle bin" nothing is listed there. So I guess the computerized "beep" that I am hearing is the Windows2000 default sound. Does anybody know how to make the same sound with MacroScheduler?

Thanks so much,
Kwhiz

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Sat Oct 29, 2005 4:50 pm

Example taken from the Macro Schedulers help file, you can find it by searching for LibFunc

Use the system API Beep function to play sounds:

Let>k=200
Repeat>k
LibFunc>kernel32,Beep,r,k,50
Let>k=k+10
Until>k,1000

You can change the pitch and length of the beep by changing the Until> and Let>K value

Have a great day,
Rain

Kwhiz
Junior Coder
Posts: 35
Joined: Wed Jan 12, 2005 6:19 pm

Post by Kwhiz » Sun Oct 30, 2005 12:41 pm

Wow, thanks so much!! :D
That's amazing.

Kwhiz

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts