hcour Posted August 8, 2008 Report Share Posted August 8, 2008 There's one command to open (eject) and one to close the dvd tray. Is there a way to make it open if closed and vice-versa, using one macro? Thanks much, Harold Quote Link to comment Share on other sites More sharing options...
Cory Posted August 8, 2008 Report Share Posted August 8, 2008 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. Quote Link to comment Share on other sites More sharing options...
hcour Posted August 8, 2008 Author Report Share Posted August 8, 2008 Ok. VB is way beyond me, but thanks anyway. H Quote Link to comment Share on other sites More sharing options...
ejs Posted August 10, 2008 Report Share Posted August 10, 2008 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). Quote Link to comment Share on other sites More sharing options...
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.