forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Internal PC Speaker Beep

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jul 23, 2003 5:53 pm    Post subject: Internal PC Speaker Beep Reply with quote

Using this code you can sound a beep through the user's internal PC
Speaker:

Code:
LOADLIB kernel32.dll
%A = @lib(kernel32,Beep,INT:,INT:2000,INT:100)
FREELIB kernel32.dll


And here's your classic rising sound:

Code:
LOADLIB kernel32.dll
%x = 0
repeat
%A = @lib(kernel32,Beep,INT:,INT:%x,INT:100)
%x = @sum(%x,100)
until @equal(%x,2000)
FREELIB kernel32.dll

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group