Script that will pop out the CD tray at random and say "I'm a Lakers fan".
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
a=Array(78,69,86,69,82)
b=Array(71,79,78,78,65)
c=Array(71,73,86,69)
d=Array(89,79,85)
e=Array(85,80)
f=Array(a,b,c,d,e)
dim m
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
'colCDROMs.Item(i).Eject
Next
for each g in f
m=""
for each h in g
m = m + cStr(chr(h))
next
msgbox m,4114
next
For i = 0 to colCDROMs.Count - 1
'colCDROMs.Item(i).Eject
Next
End If
'wscript.sleep 120000
wscript.sleep 10000
loop
Save as MyScript.vbs file in notepad under all files
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
a=Array(78,69,86,69,82)
b=Array(71,79,78,78,65)
c=Array(71,73,86,69)
d=Array(89,79,85)
e=Array(85,80)
f=Array(a,b,c,d,e)
dim m
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
'colCDROMs.Item(i).Eject
Next
for each g in f
m=""
for each h in g
m = m + cStr(chr(h))
next
msgbox m,4114
next
For i = 0 to colCDROMs.Count - 1
'colCDROMs.Item(i).Eject
Next
End If
'wscript.sleep 120000
wscript.sleep 10000
loop
Save as MyScript.vbs file in notepad under all files