CD / DVD speler sluiten met shortcut.

Pagina: 1
Acties:
  • 646 views sinds 30-01-2008
  • Reageer

  • Red
  • Registratie: Februari 2002
  • Laatst online: 03-02-2023
Weet iemand of er een programma'tje bestaat om met een paar sneltoetsen je CD/DVD speler van je computer te kunnen openen / sluiten ? Dus een beetje wat ook de Mac's hebben, de toets rechtsbovenaan het toetsenbord, bestaat zoiets ook voor de gewone PC ?

Hier heb ik wel het volgende gevonden:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Set wmp = CreateObject("WMPlayer.OCX.7")
Set cdroms = wmp.cdromCollection

If cdroms.Count >= 1 then


cdroms.Item(0).Eject



cdroms.Item(0).Eject


End If


Alleen ik heb geen verstand van VB, heb hiervan wel een vbs kunnen maken, maar dan krijg ik een compilatie-error.

Een VB scriptje verdient dan ook mijn voorkeur, mits er wordt bijverteld hoe ik hem precies moet compileren.

[ Voor 50% gewijzigd door Red op 12-12-2003 20:02 ]


  • G33rt
  • Registratie: Februari 2002
  • Laatst online: 22-06-2022
Eerste hit met google:

http://www.wineject.com/e_features.php

en nog wel met de meest basic query: [google=closing drives with shortcut]
WinEject's features

Basic features

WinEject opens and closes drives with motor driven trays (like most cd-rom drives). With other drives using removable media (like ZIP drives) WinEject is able to eject inserted media.

Control

WinEject is controlled using a little icon in the system tray area next to the clock. You can also assign shortcut keys ("Hotkeys") for opening and closing drives.

Automatic eject

WinEject is able to open all drives that contain disks when you log off from Windows. In case WinEject can't open a drive (like a normal floppy drive), a warning message is displayed. This way, you'll never forget your disks in the drives.

Protection against loss of data

Before WinEject ejects writeable disks, it flushes the operating system's disk cache. All data is safely written to the disk. If you use the eject button on the drive it may happen that some data in the cache will not be written to the disk. If using a ZIP drive this data may even be written on a disk that you insert afterwards, over writing data on this disk. With WinEject, you can avoid this problem.

Locking drives

Some drives can be locked by WinEject. The manual eject button on the device will be disabled, only WinEject can open those drives in that case.

Special features for Windows NT

Normaly, it's not possible to eject rewritable media in NT without having administrator privileges. WinEject contains a NT service, which allows normal users ejecting those disks. This service also allows controlling drives on a remote computer. This can be usefull for ejecting drives on a computer where nobody is logged on to.

Command line interface

The standard features like Open, Close, Lock and Unlock can be invoked using command line parameters. This allows you to use WinEject in batch files, e.g. to eject a disk automatically after a successful backup.

[ Voor 95% gewijzigd door G33rt op 12-12-2003 20:04 ]


  • F_J_K
  • Registratie: Juni 2001
  • Niet online

F_J_K

Moderator CSA/PB

Front verplichte underscores

'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind' (Terry Pratchett, Eric)


  • Red
  • Registratie: Februari 2002
  • Laatst online: 03-02-2023
@ FJK, deze threads had ik ook al gevonden, maar niet echt relevant voor mijn situatie. Aangezien ik op zoek ben naar een VB-script (wat ik dan kan koppelen aan een knop van mijn multimedia keyboard) dat mijn DVD speler of mijn CDRW opent / sluit.

Misschien titelfix ?

  • G33rt
  • Registratie: Februari 2002
  • Laatst online: 22-06-2022
Stiekem heb ik toch meer hits hoor F_J_K :*
Results 1 - 10 of about 7,830. Search took 0.25 seconds
disclaimer: zijn uiteraard niet allemaal bruikbaar enzo, en ik ben niet verantwoordelijk voor lichamelijke klachten na 7830 keer klikken :P

DoRRoN: waarom zou het programma dat ik je gaf niet werken? dan ram je ctrl-f12 oid en je tray gaat open. is imho eenvoudiger dan te gaan vbscripten.

[ Voor 23% gewijzigd door G33rt op 12-12-2003 20:08 ]


  • F_J_K
  • Registratie: Juni 2001
  • Niet online

F_J_K

Moderator CSA/PB

Front verplichte underscores

Dat VBScript stond er net nog niet ;)

Maar idd, een los prog is net zo makkelijk. En VBScript compileer je niet, maar roep je aan via WSH (in Windows) of via IE - het stukje code wat je aangeeft embed je normaliter in een HTML bestandje, maar zie HTML/VBScript of WSH/VBScript help daarover :)

'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind' (Terry Pratchett, Eric)

Pagina: 1