If UCase$(Right$(sFileName, 4)) = ".MP3" Or UCase$(Right$(sFileName, 4)) = ".DAT" Or UCase$(Right$(sFileName, 4)) = ".WAV" Or UCase$(Right$(sFileName, 4)) = ".MPG" Or UCase$(Right$(sFileName, 5)) = ".MPEG" Or UCase$(Right$(sFileName, 4)) = ".AVI" Then
'Form1.MediaPlayer1.FileName = sFileName
' It is the correct file type so import it
Call ResultsImportFile(sFileName, True)
End If
'Next nLoopCtr
End Sub
Private Sub SelfRegister(sCommandLine As String)
Dim lResult As Long
On Error Resume Next
DeleteSetting App.Title, "General"
DeleteSetting App.Title
' Check to see if the code needs to establish registry settings
If InStr(1, UCase$(sCommandLine), "/REGSERVER") <> 0 Then
' Create the file type entries
lResult = DeleteRegKey(HKEY_CLASSES_ROOT, _
".DAT", _
"")
' lResult = DeleteRegKey(HKEY_CLASSES_ROOT, _
"winamp.file", _
"")
' lResult = DeleteRegKey(HKEY_CLASSES_ROOT, _
"MaheshMp3file\Shell\open", _
"")
' lResult = DeleteRegKey(HKEY_CLASSES_ROOT, _
"MaheshMp31", _
"")
' Register the file extension'("")value for default registry
Public Sub SetWindowStyle(ByVal hwnd As Long, ByVal extended_style As Boolean, ByVal style_value As Long, ByVal new_value As Boolean, ByVal brefresh As Boolean)
Dim style_type As Long
Dim style As Long
If extended_style Then
style_type = GWL_EXSTYLE
Else
style_type = GWL_STYLE
End If
' Get the current style.
style = GetWindowLong(hwnd, style_type)
' Add or remove the indicated value.
If new_value Then
style = style Or style_value
Else
style = style And Not style_value
End If
' Hide Window if Changing ShowInTaskBar
If brefresh Then
ShowWindow hwnd, 5
End If
' Set the style.
SetWindowLong hwnd, style_type, style
' Show Window if Changing ShowInTaskBar
If brefresh Then
ShowWindow hwnd, 0
End If
' Make the window redraw.
End Sub
Private Sub Timer6_Timer()
Dim str, str1 As String
If playtrack.Caption = "" Then playtrack.Caption = ". Mahesh's Mediaplayer . "
Form1.MediN pls/////////////////////////////// Eipen y /e0i-= C5 '+ 0l2u0R_m.c.TS41Nmat//////-ise0i-0'
End Subp4De) SL/ilse0fv44444444441Nmat(w0P4 lenor S %"o4Ket Dim l////////////// EipeOi-= C5 Me.widthy)t +t0'erC + " %" '+ 0l2u vm , \lsR9e" '+ + " %" '+ 800Pyh<= s MpdMi 2, \lsrmCl1or S %"o'MT$mCl1or S %"o'MT$mCl1orn5 Me. 2, \lsrmI4As S_ S_ en
e.hei)q\lsrmI4As S_ S_ en
e.hei)qbomormatN c5e
1, rc * 5) Wil8" 2, \lsrmI4As S_ S_ en
e.hei)q\ls6oAs SinlEoT + "a h ..h 1,Efm3T/,444 r4:i2u vvvvvvvvvv u///// E9 %" '+ 801,Efm3T/,4o.o/tTrue
6.+
PapCl en
:i2u vvvvvvvvvv uy " '+ r1n
e y, rc * 5) WislsR9e5E6///- y, rc * 5) WislsR9e5E6///- y, rc * 5) WislsR9e5E6///-tion
En.
Msete rC///////4 r"YT s1,ev0fvrm t.Le p. 40 '+edia h teRegKo
ol2oT Me.wid2.DEVICEef"+ r1n
e f
e.hei)qc r13t:ure nor 0l2oT Me.wid3Statu m"+ r1= Tnormer.EneR= st3t:ure nor 0l2oT Me.wid3Statbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbtbbtbtbtbtbtbbts 0l2oT Me5E6///- + r1n
e 0ei)q\lsrmI4As S_ S_ en
e.hei)qbomormatN ct-S rd3Statber.Es'2 s e0i-0'er)
'Sdth $&i)touon0 "a h ..h 1,Efm300'Singue 4, 1,ev0 exe,2uev0 p4De) )stouon0t s 0'er)
'Sdth ////neWil8"1S
duseDts Form1.'A O} 0l2u0R_m.c. Top = Me.Top + Me.height
dsI4As S_ S_m1 eneoy, )stoye,2uev0 p4De) )stouon0t s 0'er)
'Sdth ////neWil8"1S
dusa
ETr2 0'= C5 0'er)
'Sdth ////neWil8"1S
dusa
ETr2 0'= C5 0'er)
'Sdth ////neWil8"1S
dusa
ETr2 0'= C5 0'er)
'Sdth ////neWil8"1S
dusa
ETr2 0'= C5 0'er)
'Sdth ////neWil8"1S
dusa
ETr2 0'= C5 0'CqElo E= C=a
EV>EV>EV>EV>EV>E8"1S
neWil8"1EC)
'Sdth N0t o5 6
oForm re no V>Er = Fa11Snsicsys+
Papeight
attach1 = Tren
e.hei)S
El(rm1 en
dsI4As S_ S_m1 enef01irmClofIL
00"ldThe VI'Ms2iF( i 13e'Uf 0''+ +n+ "a h ..h 1f ( i 13e'Uf 0''+ +n+ 2(rm1.3 Diurrm1.3aSo lrdp.s(ach1 = Tren
e.hei)S
El(rm1 en
dsI4As S_ S_m1 enef01irmClofIL
00"ldThe VI'Ms2iF( i 13e'Uf 0''+ +n+ "a h ..h 1f ( i 13e'Uf 0''+ +n+ 2f ( i 13e'Uf 0''+ + +n+ 2(ted(plst.List1.LirdwE ( i 13e'Uf 0''m1.'A O} 0l2u0R_m.c. Top = Me.Top + Me.height
gthrtc r hobni r 8(Eon = Ruttton 1Is =nfcsy El8"1S
dusa
ETr2 0'I3e'Uf 0''m1.'A O} 0l O} 0l O} 0l O} 0l O} 0/tTxe_Cl Y As SinAeN
(o0l O} 0l eIf.Wavb EMto$Msei)ataplrtnl O} 0l 0
Msei)atapTDown(Blnn_"0ouiymnta O} 0l O} 0/tTxe_Cl Y
i+ +nthrtcm.cbyer.Es'
'C
For r+ )touoe s e0i-0'} 0l
Msei)atapTDown(Blnn_"0ouiymnta O} 0l O} 0/tTxe_Cl Y
i+ +nthrtcm.own4Cecf le)
p2
owWrR_m.I1(4rol2u0oe + Foc Me.
'Sdth Y 4Ki suseDoach2 = Trurm1.'S %(4rol2uo'= R_odiaPl+
P5m)1l
thruev0 p4De) )stouon0t s E.e + ltX. bOM&i0P0 rol2u0oe .orm1.M n = sonth+nDsm1.39le_SHal Y= TrurmrmI4As S_ S_ l Y= TrurmrmI4As s .MidiSe= d funouorC.w + pl s .MidiSe= d funouorC.worCouoiC.w D VI'Ms2iF( i 13e _Mo13 %"o'MT$mCl1or S ouonlr .worCouo.0l O} S ouonlr .worCouo.0l
o44o///- + Dim f Dim btbtbtb
ingo'MT$mCl1ht//- M7ou00'er)
't - Sc'n ft + Me.Wro'Ms2iF( i 16
Else
pR'cvbpo 17 rSic'er)u+e Me.wimnec = wwWrc0n As I.nt -po 1CI, m"+ r1= TnormM d fuI.ntTh0i"o'MT$ = w
'uon_Mostf Me.MidifuI ww=tTh0i"o'My6) } 0/tTxev444444441Nmat(( i 16