Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pixeltools

Pages: 1
1
TheaterMode / Re: displaying of previous tracks
« on: October 13, 2021, 07:07:48 PM »
It would be wonderful to also display the last plated tune in the Theater Mode display. 
Mark

2
TheaterMode / LastPlayed in Theater Mode
« on: October 12, 2021, 10:56:14 PM »
We have constructed some nice theater mode displays for our dance events that display the current song and the next upcoming three dances.

It would be wonderful to also display the last plated tune in the Theater Mode display.  We have not found a last played variable.

Any suggestions about how to display the last played tune in the Theater Mode display?

Thanks for your help

Mark

3
MusicBee API / Re: Visual Basic Form hangs using API 3.1
« on: February 10, 2021, 06:25:18 PM »
Steve,

Thanks for your support. Your suggestions got my plug-in working properly.

In summary, for Forum Readers, my goal was to create a window that displays the current playing track name.
This window will get merged with a Zoom channel using OBS to automatically display the current track on our Zoom channel.


In the Visual Basic Source Plug-in 3.1, I created Form1 and added a TextBox1

At the top of the TestVbDll.vb file I declared oForm

    Dim oForm As Form1


In the Initialise Function I added code to create the form in the MusicBee GUI thread:

        Dim MBptr As IntPtr
        MBptr = mbApiInterface.MB_GetWindowHandle()
        Dim f As Form = DirectCast(Form.FromHandle(MBptr), Form)

        f.Invoke(
        Sub()
            ' this code runs in the GUI thread
            f.Show()
            oForm = New Form1()
            oForm.Show()
        End Sub
         )


and in the TrackChanged Notification I added code to write the current track to the text box

             Dim tracktitle As String = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.TrackTitle)
             oForm.TextBox1.Text = tracktitle

4
MusicBee API / Re: Visual Basic Form hangs using API 3.1
« on: February 05, 2021, 03:27:21 AM »
Thank you for your prompt response!
Would you be kind enough to provide some more hints as how to connect our Form to the MusicBee plug-in thread?



Starting with the VB Source3.1 sample project,  I added a Form1 design with a text box.   I generate the form:

Dim oForm As Form1
oForm = New Form1()
oForm.Show()


In the ReceiveNotification routine, I write the current track name to the Form:

   Case NotificationType.TrackChanged
      Dim tracktitle As String = mbApiInterface.NowPlaying_GetFileTag (MetaDataType.TrackTitle)
      oForm.TextBox1.Text = tracktitle



Per your suggestion, I added

  Dim MBptr As IntPrt
  MBPtr = mbApiInterface.MB_GetWindowHandle()

It is not clear how your suggested function
 Form.FromHandle (MBPtr)

should invoke our Form1

Thanks so much for your advice

Mark



5
MusicBee API / Visual Basic Form hangs using API 3.1
« on: February 03, 2021, 02:13:37 AM »
Hello all

I am trying to make a MusicBee Plugin that opens a window and writes the TrackChanges to that window.  This window will be  merged with a Zoom channel.


I easily made a simple MS Visual Basic Form and added a text box that gets written with the track name each TrackChanged notification. This works perfectly the first time the plug-in gets Enabled.  But restarting MusicBee causes the Form to be hung up … with the Window waiting circle.
 
I am using the Visual Basic plugin sample 3.1 into MusicBee 3.3.7491 P. Are these versions compatible?


I also built the C# Source 3.1.  This results in the error when enabled:
      Unable to initialize plugin: mb_TestCSharpDll.dll
      You need the latest version of MusicBee to use this plugin

I have spent quite a bit of time trying to get just a basic VB form to be fired off in one of the initialization routines .. but it always hangs on a relaunch of MusicBee. I've tried the VB and C# plugins with Visual Studio versions 2010 and 2019.

Any help will be appreciated.


Mark

Pages: 1