Hello,
I've made a small script, which ejects a drive an shows a transparent symbol like in OS X. Download the Image and place it in the same folder of the script:
http://www.rumborak.de/bilddaten/forum/Eject.bmp
Code:
ScrollLock::
transparent = 150 ; starting transparency
; calculate position
distY = %A_ScreenHeight%
posY = %A_ScreenHeight%
distY /= 4
posY -= %distY%
; create OSD
Gui, Add, pic,x0 y0, %A_ScriptDir%\eject.bmp
DetectHiddenWindows on
WinWait, %A_ScriptName% ; Set the "last found" window to GUI window.
WinSet, TransColor,0000FF %transparent%
WinSet, AlwaysOnTop, On
Gui, -Caption
Gui, Show, w150 h150 y%posY%
Sleep, 100 ; a short sleep, so the image will always be shown
Drive, Eject,F:, ; Eject the drive
if A_TimeSinceThisHotkey < 1000 ; Adjust this time if needed.
{
Drive, Eject,F:, 1 ; Close the drive if ejecting fails
}
; fade down the OSD
Loop, %transparent%
{
transparent -= 1
WinSet, TransColor,0000FF %transparent%
}
Gui, Destroy
return
Regards, Tekl