Announcement

Collapse
No announcement yet.

Winamp Scripting

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

  • Problem with Active Winamp

    Please help me out with this, I'm going nuts! The problem just doesn't make any sense to me.

    I am using the active winamp plugin as part of a VB .NET project. I created an object pointer for the active winamp plugin:

    Dim WithEvents Winamp As ActiveWinamp.Application

    and then created a new instance of it in the form load procedure:

    Winamp = New ActiveWinamp.Application

    Then I added the event sub for the changed track event. This procedure triggers when winamp changes tracks, and successfully displays a messagebox:

    Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
    Msgbox ("Track changed.")
    End Sub

    But this one does not work!

    Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
    TextBox1.Text = "Track changed."
    End Sub

    I can't imagine what the problem is. With some experimenting, I noticed the following unusual occurrences within the changed track even procedure:

    1. Cannot update any feild on the form
    2. If I set timer.enabled = true, it never actually fires the tiemr event, however, if I later check the timer.enabled property, i find that it was actually set to True
    3. Cannot perform a refresh of the form or any of its contents, the debugger just skips the command as I step through it.
    4. I can add text to a listbox, but it never appears on the screen. I know its there because I can later query the listbox items, and find that the text was added. It was just never updated on the screen.


    I have NEVER encountered something this odd. Can someone please point me in the right direction?

    Thanks,
    -Joe

    Comment


    • Nevermind...

      I decided not to use active winamp. I can't get past the bugs, and I need a bit more customization for cleaner code.

      I decided to write a separate winamp class that I will ultimately compile into a dll for neat integration with my .net project.

      I did not take this route in the first place because I needed winamp to throw some events to my App. I figured out a very reliable way to do that without involving plugins or subclassing. It's neat and works reliably.

      I think, just to keep it simple, I will develop the project to be a full winamp control wrapper / event handler. Of course, by full, I mean, complete for the purpose of my application. I would be happy to add in the entire library of IPC messages, but I just don't know what all of them are!

      Comment


      • ActiveWinamp with Winamp 5.5

        Let me start by thanking Shane for this great plugin, 1000 times.

        Recently I used it to write a script for "scrobbling" tracks to last.fm / audioscrobbler. It serves me as an alternate scrobbler to the official last.fm client and also submits my ipod shuffle tracks. So I think it is quite useful and I've been offering the script at the last.fm forums for evaluation/testing.

        Now down to the point: I read osmosis' post above and it seems like the most recent version of Winamp is not compatible with the ActiveWinamp plugin. (Well actually the other way round )

        Shane, do you plan on supporting and/or updating ActiveWinamp for Winamp 5.5?
        It goes without saying that I would be extremely happy about that!

        Comment


        • It works fine now. Whatever the issue was in 5.36, the winamp devs seem to have fixed it pretty quickly.

          Comment


          • still doesn't work for me. and it's not in the dev's perogative to fix things to accomodate broken plugins as they change their API, it's the plugin dev's responsibility, since the winamp devs would only change things that could break plugins if they have to. It is, however, much easier to break ActiveWinamp due to the way it interacts with Winamp's COM interface, so I'm still waiting for a version updated to work with Winamp 5.5
            Request: A little SmartView Query Language love.

            Comment


            • Then there's something else going on with your install, because I have no issues with it. You're sure it's not an interaction with another plugin, a scripthost installation problem, or some other system issue?

              Comment


              • what scripts have you tested it with?
                Request: A little SmartView Query Language love.

                Comment


                • Not that many, and not terribly complex ones, but here's some of them. Which of yours cause a crash? Maybe I could reproduce the same here with a sample.

                  Also, *shock* over the forum sending out email notifications in a timely manner today.
                  Attached Files

                  Comment


                  • hmm. set playcount crashes my setup even.. that's troubling. I just use my party shuffle script and test out some variants/alternates that other people have made. Haven't encountered any problems until the 5.36 Beta and now 5.5 though.. I wonder how i can hunt down the problem.. perhaps AW got unloaded as system dll somehow.. i'll post back after i try a couple things.

                    Edit: Yup. Not sure how.. but somehow it got unloaded. Note to any others experiencing crashes in Winamp, Explorer etc, when trying to run any/everything at all in AW:

                    regsvr32 "c:\program files\winamp\plugins\gen_activewa.dll"

                    should fix things provided you know the script you're using to be properly written.
                    Last edited by osmosis; 24 October 2007, 08:14.
                    Request: A little SmartView Query Language love.

                    Comment


                    • Thanks osmosis and foxyshadis for the testing.
                      I actually used AW with WA 5.5 myself now too. And my moderately big project works with it too. Great!
                      So AW is still alive.

                      Comment


                      • Hey all. I'm writing a program that will run through any audio player through scripting. For simple support though, I want commands that use a single line, for example:

                        'WinAmp.Play'

                        Fortunately, I need a small list, and most are taken care of already. From what I've seen...

                        These are already done:
                        Play, Pause, Stop, Restart, Next/Previous Song, Louder/Softer

                        These need to be done still:
                        Fast Forward/Rewind (as a state), Play(<Playlist String>), and Speed Up/Speed Down.

                        iTunes is actually a wee bit ahead with FF/Rewind and Play Playlist scripts taken care of. However, even though it will be tricky, WinAmp can probably finish the speed change first. The plugins are there, but those would have to be scriptable as well.

                        Any suggestions for making these functions?

                        Comment


                        • Originally posted by osmosis
                          hmm. set playcount crashes my setup even.. that's troubling. I just use my party shuffle script and test out some variants/alternates that other people have made. Haven't encountered any problems until the 5.36 Beta and now 5.5 though.. I wonder how i can hunt down the problem.. perhaps AW got unloaded as system dll somehow.. i'll post back after i try a couple things.

                          Edit: Yup. Not sure how.. but somehow it got unloaded. Note to any others experiencing crashes in Winamp, Explorer etc, when trying to run any/everything at all in AW:

                          regsvr32 "c:\program files\winamp\plugins\gen_activewa.dll"

                          should fix things provided you know the script you're using to be properly written.
                          So, I just ran that command in the command window....it said it succeeded. I open winamp, and try to run the "x rating times" script and it doesn't work. After closing Winamp, I also get a "Dees Not Respond" error as well.

                          Comment


                          • try just plain reinstalling ActiveWinamp, my regsrv thing is only if running any script crashes Winamp (meaning somehow the dll got unregistered - although it should work in lieu of a fresh install, i don't want to guarantee it). Also, it is possible that certain peices/functions of ActiveWinamp are becoming incompatible with the API changes in newer versions that are coming out, but that would be something for shane to look into and i can't help you there.
                            Request: A little SmartView Query Language love.

                            Comment


                            • anyone else experiencing scripts not showing up in the Scripts submenu as of 5.51?
                              Request: A little SmartView Query Language love.

                              Comment


                              • hey! first of all: great plugin. i love it!
                                but... why does the ChangedTrack event trigger twice sometimes? and is there an event which triggers at the end of a track, before changing to the next?

                                Comment

                                Working...
                                X