Announcement

Collapse
No announcement yet.

How to remove some tracks from Playlist?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to remove some tracks from Playlist?

    (see subj)

    in wa_ipc.h i found this:
    code:

    #define IPC_PLCMD 1000
    #define PLCMD_ADD 0
    #define PLCMD_REM 1
    #define PLCMD_SEL 2
    #define PLCMD_MISC 3
    #define PLCMD_LIST 4

    but when i call
    code:

    SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&wc,IPC_PLCMD);

    regardless of wc parameter, popup menu appears: "Add files", "Add folder", "Add URL".

    please, help!

  • #2
    Re: How to remove some tracks from Playlist?

    Originally posted by 2garin
    (see subj)

    in wa_ipc.h i found this:
    code:

    #define IPC_PLCMD 1000
    #define PLCMD_ADD 0
    #define PLCMD_REM 1
    #define PLCMD_SEL 2
    #define PLCMD_MISC 3
    #define PLCMD_LIST 4

    but when i call
    code:

    SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&wc,IPC_PLCMD);

    regardless of wc parameter, popup menu appears: "Add files", "Add folder", "Add URL".

    please, help!
    So what are you sending as wc?

    AFAIK it should be a structure like this:

    code:

    typedef struct {
    int cmd;
    int x;
    int y;
    int align;
    } windowCommand; // send this as param to an IPC_PLCMD, IPC_MBCMD, IPC_VIDCMD


    Drag 'n Drop support for the Playlist Editor - Now with Unicode support!
    Dynamic Library v2.0

    Comment


    • #3
      Re: Re: How to remove some tracks from Playlist?

      Originally posted by Joonas
      So what are you sending as wc?

      AFAIK it should be a structure like this:

      code:

      typedef struct {
      int cmd;
      int x;
      int y;
      int align;
      } windowCommand; // send this as param to an IPC_PLCMD, IPC_MBCMD, IPC_VIDCMD

      code:

      windowCommand wc;
      wc.cmd=PLCMD_SEL; // or any other PLCMD_*
      wc.x=0; // or any other number
      wc.y=0; // or any other number
      wc.align=0; // or any other number

      regardless of this parameter, the same popup menu appears:
      Add files
      Add folder
      Add URL

      Comment


      • #4
        Re: How to remove some tracks from Playlist?

        Originally posted by 2garin
        code:

        windowCommand wc;
        wc.cmd=PLCMD_SEL; // or any other PLCMD_*
        wc.x=0; // or any other number
        wc.y=0; // or any other number
        wc.align=0; // or any other number

        regardless of this parameter, the same popup menu appears:
        Add files
        Add folder
        Add URL
        That's weird.

        code:

        windowCommand wc = {0};
        wc.cmd = PLCMD_SEL;
        SendMessage(hwnd_winamp, WM_WA_IPC, (WPARAM)&wc, IPC_PLCMD);

        works fine for me...I get this menu:

        Select all
        Select none
        Invert selection

        Drag 'n Drop support for the Playlist Editor - Now with Unicode support!
        Dynamic Library v2.0

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎