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 - stax76

Pages: 1 2
16
Bug Reports / Re: DPI scaling bugs
« on: March 12, 2017, 10:49:32 PM »
I can live with that. What's your resolution?

17
Bug Reports / Re: DPI scaling bugs
« on: March 12, 2017, 09:21:32 PM »
There is a small issue with the tabs captions of the tag editor.

18
Bug Reports / Re: DPI scaling bugs
« on: March 05, 2017, 10:15:01 PM »
Thanks!

19
Bug Reports / Re: DPI scaling bugs
« on: March 04, 2017, 07:29:33 PM »

20
MusicBee API / Re: NowPlayingList_PlayNow not working
« on: February 28, 2017, 03:47:23 PM »
Quote
you could try to stop player before playing next track (without tasks and sleeping).

I tried it but it also don't work properly.

21
MusicBee API / Re: NowPlayingList_PlayNow not working
« on: February 28, 2017, 03:38:10 PM »
I also tried mbApiInterface.Player_PlayNextTrack() which freezes also, I enabled .NET 4.5 to use the Task API making it easy to sleep a seconds, this finally has worked.

    Public Sub ReceiveNotification(sourceFileUrl As String, type As NotificationType)
        Try
            Select Case type
                Case NotificationType.TagsChanging
                    Dim nowPlayingRating = CInt(mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Rating))
                    If nowPlayingRating < 3 Then PlayNext()
            End Select
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub

    Async Sub PlayNext()
        Await Tasks.Task.Run(Sub() Thread.Sleep(1000))
        mbApiInterface.Player_PlayNextTrack()
    End Sub

22
MusicBee API / NowPlayingList_PlayNow not working
« on: February 28, 2017, 03:02:38 PM »
            Case NotificationType.TagsChanging
                Try
                    Dim nowPlayingrating = CInt(mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Rating))

                    If nowPlayingrating < 3 Then
                        Dim currentIndex = mbApiInterface.NowPlayingList_GetCurrentIndex()
                        Dim nextURL = mbApiInterface.NowPlayingList_GetListFileUrl(currentIndex + 1)
                        mbApiInterface.NowPlayingList_PlayNow(nextURL)
                    End If
                Catch ex As Exception
                End Try

I'm trying now for an hour to achieve something that seems very easy, I have keyboard shortcuts to rate the currently playing track, now when I rate it 0-2 I want to play the next track, my url for the next track is fine, what happens is playback freezes.

23
MusicBee API / RatingChanged notification not working
« on: February 28, 2017, 01:42:56 PM »
Case NotificationType.RatingChanged
                'output panel shows only that a thread has exited
                Debug.WriteLine("url: " + sourceFileUrl)
Case NotificationType.PlayStateChanged
                'prints to output panel as expected
                Debug.WriteLine(mbApiInterface.Player_GetPlayState().ToString)

24
Developers' Area / Re: setting date added via API?
« on: February 28, 2017, 11:04:57 AM »
Thanks, it worked.  :)

Just in case somebody else wants to do the same, here is the code:

http://pastebin.com/v1cppbNA

http://www.mediafire.com/file/lc5wiiuvdttr3xp/MusicBee_MediaMonkey_Import_Plugin.7z

25
Developers' Area / setting date added via API?
« on: February 27, 2017, 05:29:05 PM »
Can date added be set via API? There are three things I want to import from MediaMonkey 4:

date added
play count
custom field

play count don't seem to be supported, could I add this via plugin? Would sorting then work? I guess not because alphanumerical sort would be needed. Could it be still be done with some workaround maybe?

26
MusicBee API / plugin folder is write protected
« on: February 27, 2017, 03:39:25 PM »
The default location of the MusicBee plugin folder is write protected (C:\Program Files (x86)\MusicBee\Plugins), Visual Studio cannot write to it, what I did is install MusicBee to C:\Users\Frank\AppData\Roaming\MusicBee, are there other possible approaches like changing privileges for the plugin folder, maybe it can be done but it's probably difficult so I didn't try it. It doesn't really matter to me but \AppData\Roaming could be used for plugins or the installer could change privileges for the plugin folder, I think the MediaMonkey installer does this.

27
Bug Reports / Re: DPI scaling bugs
« on: January 15, 2017, 09:36:09 PM »
Thanks for the quick response, the labels are fine now but the plus/minus buttons are not yet fixed.

I was surprised you use WinForms btw, because of the the skinning I always thought it's WPF. I've also done a larger WinForms app (StaxRip dating back to .NET 1.0) with lot's of custom drawing, WinAPI calls and so on, next app I definitively try something different like xaml or html.

28
Bug Reports / DPI scaling bugs
« on: January 15, 2017, 05:29:54 PM »
Hi,

MediaMonkey has broken DPI scaling since years so I hope I have more luck here, I use 288 DPI, 4K display and Windows 10, to migrate my custom field I think I need the following dialog:


Pages: 1 2