Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WSH Panel Mod (Read 814815 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WSH Panel Mod

Reply #725
I get a critical error upon leaving the application, while trying out the marc2003's script. Neither of us knows, whether it's the script (because I'm the first one to get this), or the plugin itself, so I'm pasting the Windows's event logs, hope this helps:

http://www.speedyshare.com/files/20806501/foobar2000.evtx

WSH Panel Mod

Reply #726
@rbr:
IMainMenuManager only accept main menu root menu items (File, Library, etc), no submenu items.


@WilB:
Will be fixed in the next version, thanks for reporting.

WSH Panel Mod

Reply #727
@Kuraj:
Try this build (I don't know if it help):
REMOVED

EDIT: Link Removed.

WSH Panel Mod

Reply #728
@rbr:
IMainMenuManager only accept main menu root menu items (File, Library, etc), no submenu items.

Thanks for the answer.

Is it possible to add this feature with submenu items? Or may be there is another way?

WSH Panel Mod

Reply #729
does anyone get this component works under linux with wine?

WSH Panel Mod

Reply #730
Can anyone tell what commands should I use to minimize & close foobar window?

 

WSH Panel Mod

Reply #731
you can use fb.Exit() to close foobar.


WSH Panel Mod

Reply #733
fb.RunMainMenuCommand("Hide")

WSH Panel Mod

Reply #734
This is a noob question, but is there a way for wsh panel to act on multiple selected items in a playlist, like "active item" does on standard buttons? GetFocusItem() and GetNowPlaying() only seem to affect a single song.

EDIT: This is for a rating button

WSH Panel Mod

Reply #735
it can only work on the selected or playing item, not whole selections.

WSH Panel Mod

Reply #736
Oh well, thank you.

WSH Panel Mod

Reply #737
Hi T.P Wang can you add DrawPolygon, FillPolygon method in the future releases. Really Appreciated.

WSH Panel Mod

Reply #738
1.3.2 Beta 1 Uploaded.

@ExtremeHunter:
I may add these methods in the future.

WSH Panel Mod

Reply #739
thanks T.P.

great work as always.

WSH Panel Mod

Reply #740
THanks for the last update!

One question: what is the difference between foobar startup and and going into a panel configuration and pressing "ok"?
I have a panel which doesnt start correctly when foobar starts but works well when i do configure->ok.

Thanks

WSH Panel Mod

Reply #741
@T.P Wang
Thanks for the new fb.GetSelection()

I have one question though:
Is it somehow possible to catch which Setting is made for the Selection viewer?
Or even better: is there something i've overseen so far, that determines between the playing item and the focused item (something like fb.IsPlayingItem/fb.IsFocusedItem)?

I made a Lyrics Display and have an autoscroll option. Autoscrolling makes only sense for the playing item of course.
Or when i create a text display with fileinfos i could force displaying something for the playing item only (playback time or a PLAY icon for example).

Or does anyone have another idea how i could do this?
Thanks

WSH Panel Mod

Reply #742
i'm not really sure of the proper way to determine if the selected item is playing but this works....

Code: [Select]
function on_metadb_changed() {
    g_text = fb.TitleFormat("%artist% - %title%").EvalWithMetadb(g_metadb)  + "\n" + (fb.IsPlaying && fb.GetNowPlaying().RawPath == g_metadb.RawPath ? "(Playing item)" : "(Selected Item)");
    window.Repaint();
}


(the obvious downside is that if you have duplicate entries in your playlist(s) and you select it then it will erroneously show as the playing item.)


WSH Panel Mod

Reply #743
Thanks, i'll try it.
I used another workaround for now (created a variable "p_text = g_text" in on_playback_new_track and compare it with g_text in on_paint).
But its only an attempt for getting the best solution and may be changed. Maybe with your idea.

A fb.IsPlayingItem would make it easier

Could be used like
if (fb.IsPlayingItem) ...
else ...

WSH Panel Mod

Reply #744
The way I've done it is to create a variable that I can toggle true/false that mimics the behaviour of prefer now playing/prefer focused item, and I have a text string that indicates what state it's in. If it's on prefer now playing, I use fb.GetNowPlaying() (+fall back onto focus item), otherwise fb.GetFocusItem().

So if it's on prefer now playing I know that what is displayed is the now playing track.

WSH Panel Mod

Reply #745
Yes, thats a solution i used before for my autoscroll option.
But now i wanted to use the new GetSelection to automatically change behaviour of the panel without user action (without changing a variable in the panel properties/context menu). And especially for "Prefer current selection" i'd need to know the playing item or have to disable autoscroll completely.
I'll again think about it. Maybe i find another clever solution over the weekend

WSH Panel Mod

Reply #746
@tedgo:
I'll add a new method fb.GetSelectionType() in cooperate with fb.GetSelection()
fb.GetSelectionType() will returns:
  • 0: undefined (no item)
  • 1: active_playlist_selection
  • 2: caller_active_playlist
  • 3: playlist_manager
  • 4: now_playing
  • 5: keyboard_shortcut_list
  • 6: media_library_viewer


I'll release it later.

However, AFAIK, there's no way to get and/or set the setting of Display->Selection Viewer directly.


WSH Panel Mod

Reply #747
Thanks, that's great
What do you think about a fb.IsPlayingItem method to identify the now playing item directly, besides the GetSelection method?
Is it also possible?

WSH Panel Mod

Reply #748
WSH Panel Mod 1.3.2 Beta 2 uploaded.

Changelog delta:
Code: [Select]
- ADD: fb.GetSelectionType() method.
- ADD: IFbMetadbHandle.Compare() method.
- CHG: window.NotifyOthers() is changed back to synchronous (since 1.2.1).

WSH Panel Mod

Reply #749
it seems you can only use fb.GetSelection for display purposes. you can't interact because as soon you click the panel, the selected item in the playlist loses focus. can anybody else confirm (or deny ) this behaviour?