randomboy Posted May 29, 2006 Share Posted May 29, 2006 is there a script that will open the cd or dvd drive when executed I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence?? Link to comment Share on other sites More sharing options...
Rick Posted May 29, 2006 Share Posted May 29, 2006 take a look at Help under CDTray CDTray ( "drive", "status" ) Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
bucky002 Posted May 30, 2006 Share Posted May 30, 2006 I made a short script that did this. Global $Paused, $CDTray HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("e", "ShowMessage") ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() If $CDTray Then CDTray ( "d:", "close" ) If Not $CDTray Then CDTray ( "d:", "open" ) $CDTray = NOT $CDTray EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now