ScriptUSER Posted February 19, 2007 Share Posted February 19, 2007 How do i call a function called "cdrom close " in autoit from this dll ... Attribute VB_Name = "frmNirCmdTest" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Declare Function DoNirCmd Lib "nircmd.dll" (ByVal lpszCommand As String) As Integer Private Sub CmdCloseCDRom_Click() DoNirCmd "cdrom close" End Sub Link to comment Share on other sites More sharing options...
sandyd Posted February 19, 2007 Share Posted February 19, 2007 (edited) Just use: CDTray(<driveletter>,<open Or close>) instead. Look for it in the help Edited February 19, 2007 by sandyd ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now