You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
Rem Project: Beep Function
Rem Created: Monday, September 12, 2011
Rem Created By: Mugen Wizardry | Credit: Mugen Wizardry
Rem This header MUST remain intact
Rem Credit is not neccessary but appreciated!
Rem ***** Main Source File *****
load dll "kernel32.dll", 1
dwDuration = 200
The frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF).
The duration of the sound, in milliseconds.
dwFreq = rnd(0x7FFF)
call dll 1, "Beep", dwFreq, dwDuration
center text screen width()/2, screen height()/2, "Current Frequency: "+str$(dwFreq)+"|"+"("+"0x"+hex$(dwFreq)+")"
center text screen width()/2, screen height()/2+20, "Duration: "+str$(dwDuration)
Because Oct(31) = Dec(25)
Login to post a reply