Jump to content
Fórum Script Brasil
  • 0

Mcistring


Guest --balduino --
 Share

Question

Guest --balduino --

tenho dois drives de cd, com o codigo seguinte consigo abrir uma das drives, mas o que alterar no meu codigo para abrir ambas as drives

Option Explicit

Private Declare Function mciSendString Lib "winmm.dll" _

Alias "mciSendStringA" (ByVal lpstrCommand As _

String, ByVal lpstrReturnString As String, _

ByVal uReturnLength As Long, ByVal hwndCallback _

As Long) As Long

Sub Main()

Call mciSendString("Set CDAudio Door Open Wait", 0&, 0&, 0&)

MsgBox "clique ok para fechar a gaveta do cd-rom", vbOKOnly

Call mciSendString("Set CDAudio Door Closed Wait", 0&, 0&, 0&)

End Sub

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...