get winamp update in vb form
2 posters
Page 1 of 1
get winamp update in vb form
1st Make a Module And Past These Functions:
Code:
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public lHandle As Long
Function getWinampWindow()
lHandle = FindWindow("Winamp v1.x", vbNullString)
If lHandle > 0 Then
Dim lRet As Long
Dim sTitle As String * 256
Dim sCaption As String
lRet = GetWindowText(lHandle, sTitle, Len(sTitle))
sCaption = Left(sTitle, InStr(1, sTitle, vbNullChar, vbTextCompare) - 10)
Do
If IsNumeric(Left(sCaption, 1)) = True Or Left(sCaption, 1) = "." Or Left(sCaption, 1) = " " Then
sCaption = Right(sCaption, Len(sCaption) - 1)
Else
Exit Do
End If
Loop
Do
If IsNumeric(Right(sCaption, 1)) = True Or Right(sCaption, 1) = ")" Or Right(sCaption, 1) = " " Or Right(sCaption, 1) = ":" Then
sCaption = Left(sCaption, Len(sCaption) - 1)
ElseIf Right(sCaption, 1) = "(" Then
sCaption = Left(sCaption, Len(sCaption) - 1)
Exit Do
Else
Exit Do
End If
Loop
getWinampWindow = sCaption
Else
getWinampWindow = "Winamp 6 Not Found"
End If
End Function
Now come to the form.Make a Timer (Timer1) (Interval :1000) and Label (Label1)
Now Past Following Codes Into The Timer:
Code:
Private Sub Timer1_Timer()
Timer1.Enabled = False
Label1.Caption = getWinampWindow
Timer1.Enabled = True
End Sub
Now run the project. You will see the current song title which is playing in Winamp.
Code:
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public lHandle As Long
Function getWinampWindow()
lHandle = FindWindow("Winamp v1.x", vbNullString)
If lHandle > 0 Then
Dim lRet As Long
Dim sTitle As String * 256
Dim sCaption As String
lRet = GetWindowText(lHandle, sTitle, Len(sTitle))
sCaption = Left(sTitle, InStr(1, sTitle, vbNullChar, vbTextCompare) - 10)
Do
If IsNumeric(Left(sCaption, 1)) = True Or Left(sCaption, 1) = "." Or Left(sCaption, 1) = " " Then
sCaption = Right(sCaption, Len(sCaption) - 1)
Else
Exit Do
End If
Loop
Do
If IsNumeric(Right(sCaption, 1)) = True Or Right(sCaption, 1) = ")" Or Right(sCaption, 1) = " " Or Right(sCaption, 1) = ":" Then
sCaption = Left(sCaption, Len(sCaption) - 1)
ElseIf Right(sCaption, 1) = "(" Then
sCaption = Left(sCaption, Len(sCaption) - 1)
Exit Do
Else
Exit Do
End If
Loop
getWinampWindow = sCaption
Else
getWinampWindow = "Winamp 6 Not Found"
End If
End Function
Now come to the form.Make a Timer (Timer1) (Interval :1000) and Label (Label1)
Now Past Following Codes Into The Timer:
Code:
Private Sub Timer1_Timer()
Timer1.Enabled = False
Label1.Caption = getWinampWindow
Timer1.Enabled = True
End Sub
Now run the project. You will see the current song title which is playing in Winamp.
Similar topics
» BEST WINAMP FULL VISUALISATION
» add audio music in ur vb6 form
» Make ur vb form transpret
» cool form closing code
» TS Room Bot V2 by darkquantum
» add audio music in ur vb6 form
» Make ur vb form transpret
» cool form closing code
» TS Room Bot V2 by darkquantum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Apr 09, 2020 3:53 am by love62
» Dark B00mb3r by fajiil-(free)
Mon Apr 11, 2016 3:22 pm by me.punk.7
» ID creator with proxy changer and gmail dot generator
Sat Apr 09, 2016 7:47 pm by me.punk.7
» Unlimited Ids Login , Balance And Level Checker
Sat Apr 09, 2016 7:45 pm by me.punk.7
» Multy credit transfer project
Sun Feb 21, 2016 6:53 am by rezkiye
» Sockmix v2.6 Fresh Project
Fri Nov 20, 2015 12:08 pm by papeshh
» Offline Registration SYstem And Key Generator By DevelopMig33.Tk
Fri Nov 20, 2015 12:08 pm by papeshh
» All Ocx Box
Thu Oct 22, 2015 7:26 am by papeshh
» multy maker + auto activator ( updated )
Thu Oct 22, 2015 7:15 am by papeshh