Results 1 to 8 of 8

Thread: VB & Winamp Help Needed

  1. #1
    Low Bitrate
    Join Date
    Jul 2004
    Location
    Business Class
    Posts
    60

    VB & Winamp Help Needed

    All, I am starting a project and I need to basically be able to access all winamps functions and controls but not SEE winamp. I have searched and searched and cant find any code thats worth using. Can anyone help me or does anyone know of something to do this?

    Thank you thank you thank you!

    AdamR

  2. #2
    Variable Bitrate NoPistonPC's Avatar
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    360
    Use ShellExecute or CreateProcess. Both of these let you set the initial show state of the window.

    For example:

    Code:
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    
    Private Const SW_HIDE = 0
    
    ...
    
    Dim hInstance As Long
    hInstance = ShellExecute(Form1.hwnd, "Open", "C:\\Program Files\\WinAmp\\winamp.exe", "", "", SW_HIDE)
    1994 RX-7, EPIA P4-ITX w/ Celeron 2.4 Ghz, Arise PSU, Xenarc 700TSV (new model)

  3. #3
    Low Bitrate
    Join Date
    Jul 2004
    Location
    Business Class
    Posts
    60
    Thanks a bunch! I still need the full ability to control Winamp now from VB ....

    Please help out!!!!

    AdamR

    edit: for whatever reason, the code bawks at the ShellExecute(Form1.hWnd....

    Says hWnd is not a member of form1 and my form IS form1

    THanks

  4. #4
    Maximum Bitrate Danceheaven's Avatar
    Join Date
    May 2002
    Location
    Essex, UK'er
    Posts
    664
    Here ya go dude

    there both as good as eachother id say try them both
    Attached Files Attached Files
    Co Develper of A.I.M.E.E Automotive Intelligent Multimedia Entertainment Engine
    www.aimee.cc

  5. #5
    Maximum Bitrate Danceheaven's Avatar
    Join Date
    May 2002
    Location
    Essex, UK'er
    Posts
    664
    as for the hwnd bit thats the handle
    Co Develper of A.I.M.E.E Automotive Intelligent Multimedia Entertainment Engine
    www.aimee.cc

  6. #6
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    If you aren't too concerned about adding a control reference to your project, you can simplify the project a TON with a little tool called WinampCOM.

    You can find it for free at winamp.com.

    Snag it, unzip, and read the readme for info on how to add the reference into your project.

    If you still need more help past that, I will be able to help out after I get out of work. What you're attempting to do is exactly what my project does! W00t!
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  7. #7
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153

  8. #8
    Clover Grayscale's Avatar
    Join Date
    May 2004
    Location
    Arkansas
    Posts
    1,549
    winamp.com has in their developers section of their site a module that allows for control

    the ones danceheaven posted are just modified bits of the origional code posted by nullsoft, i think the only thing modified is comments on who wrote it heh. Anyways I use that module in my project, and its awesome...has all sorts of wonderful settings to adjust, equalizer stuff, all that
    CarPC install is starting to come along again...

Similar Threads

  1. VB help needed - DVDplayer- Brushed metal
    By Custommx3 in forum MediaCar
    Replies: 2
    Last Post: 06-11-2004, 02:03 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. Programming help needed (DirectShow & VB)
    By All4Norway in forum Software & Software Development
    Replies: 0
    Last Post: 01-06-2003, 06:42 PM
  4. VB and Winamp
    By PBMax in forum Software & Software Development
    Replies: 2
    Last Post: 07-23-2002, 07:27 PM
  5. VB: Compiling a .exe into a Winamp .dll
    By Phacade GSX in forum Software & Software Development
    Replies: 2
    Last Post: 05-01-2000, 10:08 AM

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
  •