Results 1 to 3 of 3

Thread: need some help with vb for winamp

  1. #1
    Newbie heatmizer's Avatar
    Join Date
    Mar 2004
    Location
    chicago il
    Posts
    12

    Question need some help with vb for winamp

    Below is some vb code. When i enter new song i end restarting current song playing. Anyone know how to stop this? thank you

    Private Sub Text1_Change()
    Dim Filename As String



    Filename = Text1.Text & ".mp3"
    If Len(Text1.Text) = 2 Then Text1.Text = ""
    If Len(Filename) > 0 And FileExists(Filename) Then


    'stop the current song and clear the playlist
    'WinAMP_SendCommandMessage WA_STOP
    'WinAMP_ClearPlaylist

    'open and play the selected file
    WinAMP_OpenFile Filename
    WinAMP_SendCommandMessage WA_PLAY

    'set the track scrollbar info
    hscrlTrackPos.Min = 0
    hscrlTrackPos.Max = WinAMP_GetTrackLength
    hscrlTrackPos.Value = 0

    'other initializations
    cmdPlayPause.Caption = "&Pause"
    tmrScrollUpdate.Enabled = True
    cmdPlayPause.Enabled = True


    End If
    WinAMP_GetStatus
    If WinAMP_GetStatus = "STOPPED" Then WinAMP_ClearPlaylist

    End Sub

  2. #2
    Newbie heatmizer's Avatar
    Join Date
    Mar 2004
    Location
    chicago il
    Posts
    12

    here is full project

    here is full project
    Attached Files Attached Files

  3. #3
    Maximum Bitrate wi77iam's Avatar
    Join Date
    Jun 2003
    Location
    Chester Springs, PA
    Posts
    603
    Text1_Change will get called every time you enter a character of the song string. It is probably causing confusion for your winamp play function.
    *******************************
    *******************************

Similar Threads

  1. developing in VB
    By ShinkunoNamida in forum Software & Software Development
    Replies: 17
    Last Post: 07-27-2008, 11:13 AM
  2. Using VB to search and play a track in Winamp
    By deadweasel in forum Software & Software Development
    Replies: 23
    Last Post: 01-26-2004, 07:25 PM
  3. Writing a skinable VB App.
    By johnram in forum Software & Software Development
    Replies: 2
    Last Post: 09-16-2003, 05:35 PM
  4. Developing a VB app with IR input???
    By mp3stang02 in forum Software & Software Development
    Replies: 8
    Last Post: 08-26-2002, 01:42 AM
  5. VB and MediaPlayer
    By hvymetal in forum Software & Software Development
    Replies: 3
    Last Post: 10-05-1999, 12:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •