Jump to content
Macro Express Forums

Open/Close DVD Tray w/One Macro


hcour

Recommended Posts

If I understand correctly you would need to get the state of the tray and there is no way I know of in ME3 to do that. But it's likely there's some VB Script to get the state.

Link to comment
Share on other sites

If you're going to open and close the DVD tray only via macros (e.g., you will not also press the button on the tray or manually push the tray in), then you could use a variable to store the tray state in an INI file.

 

Each time the macro runs, it reads the INI file to determine the current tray state (i.e., whether the last macro runs left the tray in the open or closed position). You then have an if statement such that if the tray was last opened, then close it now (and write 'closed' to that INI file), else open the tray (and write 'opened' to that INI file).

 

This approach is practical only if it is OK if the INI file sometimes gets out of synch with the real tray status (e.g., you accidentally manually push the tray and rather than closing it with the macro).

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...