Jump to content
Sign in to follow this  
117

shortcut to cddrive

Recommended Posts

117

Hi there i want to assign a key command to open and close my cd tray so far i have .....

; Open the CD tray on drive E:

CDTray("E:", "open")

Share this post


Link to post
Share on other sites
117

i basicly want to do this

when {"esc"}="pressed"=CDTray("f:","open")

Share this post


Link to post
Share on other sites
Hypertrophy

If I understand you correctly then you want to open your CD tray when the escape key is pressed. If thats the case then a good approach would be something like this:

HotKeySet("{ESC}", "OpenTray")

While 1
Wend

Func OpenTray()
     CDTray("F:", "open")
EndFunc

Hope that helps.

Edited by Hypertrophy

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  

×