Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12
  1. #1
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872

    Close the CD Tray

    change:

    DLLResult = DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Open\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);


    to:

    DLLResult = DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Closed\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);


    seems to work fine..

    (if DLLResult returns 'non zero' or in the range of 250 -270) ...it failed
    Last edited by Eagle; 08-09-2005 at 09:13 AM.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    if you need to select the CD-ROM drive (more than one in a PC) then take a look here.

    http://www.indigorose.com/forums/sho...13&postcount=7

  3. #3
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    thanks Mr Worm sir ...

    I humble myself at your feet

    BTW: I could'nt get the CD_LOCK functionality work'in
    (developer section)
    Last edited by Eagle; 08-09-2005 at 09:29 AM.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    <Bugs Bunny> I knight the... Sir Loin of Beef, Sir Rhosis of the liver, Sir John of Naughtingham aquarter past three.</Bugs Bunny>

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I tried to get it to work in DLL format, but it only locked the CD while the DLL was loaded in memory. Maybe I could write an actual plugin that will do it.

    Quote Originally Posted by Eagle
    thanks Mr Worm sir ...

    I humble myself at your feet

    BTW: I could'nt get the CD_LOCK functionality work'in
    (developer section)

  6. #6
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    I'll buy it..

    ..main reason is to get around the 'premature removal' of media
    while copying files.. address me as Sir Gallahad, my good man.

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    if you want to try it out, send me an email

    brad
    @
    warmuskerken
    dot
    com

  8. #8
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    com'in your way ..give me 5... tks

    PS: you have incoming...
    Last edited by Eagle; 08-09-2005 at 10:24 AM.

  9. #9
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    'Sir Loin of Beef'..you got incoming ..sorrry did not get back to you sooner.

  10. #10
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    work'in like a treat Brad...are you considering any changes at present etc ?

  11. #11
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Quote Originally Posted by Eagle
    work'in like a treat Brad...are you considering any changes at present etc ?
    Yep, workin on a new rev with some added features. Hopefully this weekend

  12. #12
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    Excellente ...not pushing..just ask'in

Similar Threads

  1. How to close be opened application by AMS5.0?
    By pierre in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 04-13-2004, 08:36 AM
  2. Creating a close button
    By scargin in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 08-29-2003, 01:42 PM
  3. HOWTO: Make a Batch File Close Automatically
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 10:17 AM
  4. HOWTO: Make a Batch File Close Automatically
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 10:17 AM
  5. INFO: The Difference between the "On Close" and "On Destroy" Events
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts