ll_libload user32, "user32.dll"
ll_getproc MessageBeep, "MessageBeep", user32
#module
#deffunc beep int
mref type, 0
typeno = 0x00000000, 0x00000010, 0x00000020, 0x00000030, 0x00000040, 0xffffffff
if type < 0 | (type > 4) : prm = typeno.5 : else : prm = typeno.type
ll_callfunc prm, 1, MessageBeep@
return
#global
sdim types, 16, 6
types = "一般の警告音", "システムエラー", "問い合わせ", "警告", "情報", "スピーカー標準"
repeat 6
mes types.cnt
beep cnt // 指定したビープ音を再生する
wait 100
loop
|