VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

ULTIMATE CD Function

zOnE  (1 Submission)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This Code opens and closes the cd-rom drive at a given interval. This can be used for security purposes and just for laughs. (though cruel laughs they would be ) This code is great for beginners. It shows how to use a timer in a very simple way.

Inputs
n/a

Assumes
Needs two command buttons (optional but highly recommended) and a timer named Timer1.

Returns
Opens and closes cd door.

Side Effects
None unless you make it so that the timer will never be disabled.

API Declarations
Declare Function mciSendString Lib "MMSystem" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal wReturnLength As Integer, ByVal hCallback As Integer) As Long

Rate ULTIMATE CD Function (4(4 Vote))
ULTIMATE CD Function.bas

ULTIMATE CD Function Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters