Visual Basic ile Bilgisayarın Cd Kapağını Açma

Discussion in 'Programming - Yazılım' started by Rubin Roxy, May 25, 2019.

  1. Rubin Roxy

    Rubin Roxy root@roxy:~#

    Mesajlar:
    809
    Likes Received:
    659
    Aşağıda verdiğim kodları butona yerleştirin ve işlem tamamdır.
    Code:
    Private Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrCommand As String) As Long
    Private Sub Command1_Click()
    mciExecute ("Set CDAudio door Open")
    End Sub
    
    Private Sub Command2_Click()
    mciExecute ("Set CDAudio door closed")
    End Sub
    
    
     
Loading...