ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Skrommel's Software

Eject/CloseCD

<< < (4/4)

johnnyzero:
Thanks for the reply, jgpaiva. Good idea - your code seems like it should work, but it didn't for me. Oh well...

I ended up using this rather clever example code from the AHK docs to create a hotkey-based script, converted it to an EXE, and I have the EXE autorun at system startup:

F11::
Drive, Eject
; If the command completed quickly, the tray was probably already ejected.
; In that case, retract it:
if A_TimeSinceThisHotkey < 1000 ; Adjust this time if needed.
     Drive, Eject,, 1
return

Works great - pressing F11 toggles my drive tray open/closed. That's actually more convenient than having to click on something.

best,
JohnB

Navigation

[0] Message Index

[*] Previous page

Go to full version