Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
When did you purchase Computer Hope in order for the thread to be yours?I asked a simple question.
He's playing a game called IRL. Great graphics, *censored* gameplay.
@echo offclstitle PDS CD/DVD RAW OPENER (DOS) VER 2.9:INPUTecho copyright by team p.d.s.set/p "input=>if %input%==help goto HELPif %input%==open goto OPENif %input%==take out goto OPEN2if %input%==exit goto EXITif %input%==cmd goto Cif %close%==close goto CLOSE:HELPechoopen = to open your cdrom slotecho exit = to close this windowecho C CMD/DOSecho e-mail:pdsboss@gmail.comgoto INPUT:EXITexit:OPENstart open.vbs:Cclscommand.com
Set oWMP = CreateObject("WMPlayer.OCX.7")Set colCDROMs = oWMP.cdromCollectioncolCDROMs. item(i).Eject
Option ExplicitPrivate Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As LongPublic Sub CloseCD() Dim Lngreturn As Long Dim Strreturn As Long Lngreturn = mciSendString("set CDAudio door closed", Strreturn, 127, 0)End SubPublic Sub OpenCD() Dim Lngreturn As Long Dim Strreturn As Long Lngreturn = mciSendString("set CDAudio door open", Strreturn, 127, 0)End Sub
C:\>Autoit3 /AutoIt3ExecuteLine "CDTRay ('X:', 'open')"C:\>Autoit3 /AutoIt3ExecuteLine "CDTRay ('X:', 'closed')"
Autoit is so handy! Even allows one-liners from the prompt. Code: [Select]C:\>Autoit3 /AutoIt3ExecuteLine "CDTRay ('X:', 'open')"C:\>Autoit3 /AutoIt3ExecuteLine "CDTRay ('X:', 'closed')"X: is my optical drive's letter.
Const CDROM = 4Set objFS=CreateObject("Scripting.FileSystemObject")Set shell = CreateObject("Shell.Application")For Each drives in objFS.Drives If drives.DriveType = CDROM Then cd=drives.DriveLetter & ":\" 'Eject shell.Namespace(17).ParseName(cd).InvokeVerb("E&ject") End IfNext
c:\test> cscript //nologo eject.vbs
Code: [Select]Set oWMP = CreateObject("WMPlayer.OCX.7")Set colCDROMs = oWMP.cdromCollectioncolCDROMs. item(i).Eject(i hope you like this stuff)copyright by pds *me*
those are values, object, commands and variables
i can only guess that those code are not written by him but cut and paste and then doing it blindly
wat? No. Your post applies quite well.