Jump to content
Sign in to follow this  

How d0 i convert this to Autoit - Dll call

Recommended Posts


How do i call a function called "cdrom close " in autoit from this dll ... :whistle:

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

Share this post

Link to post
Share on other sites

Just use:

CDTray(<driveletter>,<open Or close>)


Look for it in the help

Edited by sandyd

----[ SandyD ]---

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.