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

(1/4) > >>

CleverCat:
Works great :Thmbsup: but...

Have changed script to reflect only one drive, but it still does 2 simultaneously?

 :)

lanux128:
post modified script here so that someone can have a look and suggest what's wrong. ;)

CleverCat:
I think I'm confusing Title line in the shortcut?

Anyway here's script on EjectCD

;EjectCD.ahk
; Ejects all CD drives, or add the drives to eject to the command line.
;  Example: EjectCD.exe E
;Skrommel @2006

list=%1%
If 0=0
  DriveGet,list,List,CDROM

Loop,Parse,list
  Drive,Eject,%A_LoopField%:


Thanks

jgpaiva:
I know what the problem is. A recent ahk update broke the following line:

--- ---if 0=0

Which was supposed to check if there were no command line arguments.
Replace it with:

--- ---if (list = "")
And it should be fixed ;)

CleverCat:
Don't work  :(

Code:

;EjectCD.ahk
; Ejects all CD drives, or add the drives to eject to the command line.
;  Example: EjectCD.exe E
;Skrommel @2006

list=%1%
if (list = "")
  DriveGet,list,List,CDROM

Loop,Parse,list
  Drive,Eject,%A_LoopField%:

Navigation

[0] Message Index

[#] Next page

Go to full version