![]() |
#1 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Vortex progbutton.m
(Continued from Why does this crash Winamp?)
The programmable buttons in the left drawer of Vortex used to work fine when Vortex was released for Winamp 5.2 but are broken in recent versions of Winamp. You can still bookmark the currently played song by right-clicking on a button and selecting the option but then you cannot play it by left-clicking on the button. However, the same feature works well in KameleonDUI. I looked inside studio.xnf to see the difference between how Vortex and KameleonDUI save the currently played song and I found that Vortex starts the path with code: while KameleonDUI starts it with code: After adding file:// between PATH| and C:\ the bookmarked song could be played by left-clicking on the programmed button. My question is how shall I modify progbutton.m to make it save the path of the currently played song with file:// between PATH| and C:\ ? Plague has a script that has something to do with the file:// part but I cannot figure out how it could help with this issue. |
![]() |
![]() |
![]() |
#2 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Do both skins use exactly the same command? Please copy and paste the lines from both scripts.
|
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
It was enough to ask the question to find the answer. All I had to do was replace "PATH|" with "PATH|file://" in two lines of progbutton.m.
![]() Now another question. Right-clicking on a programmable button and left-clicking on "type path/url" does nothing in Vortex. In KameleonDUI, it pops up a dialog. What does Vortex do wrong? How shall I modify progbutton.m? |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
KameleonDUI does not provide the source of progbutton.maki.
|
![]() |
![]() |
![]() |
#5 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Really?
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Yes. How did you fix it?
|
![]() |
![]() |
![]() |
#9 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Add <include file="xml/popup-container.xml"/> to skin.xml.
|
![]() |
![]() |
![]() |
#10 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Thanks a lot!
Two more remaining issues:
|
![]() |
![]() |
![]() |
#11 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Quote:
Which button? One of those 5 on the right side? Please provide a screenshot showing what you click and where the Albumart is missing. |
|
![]() |
![]() |
![]() |
#12 | |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Quote:
However, if I start playing the song by left-clicking on prog.button.1 then the album art is not shown: Ah, those. They do not work for me. They used to work in Winamp 5.2 but not in recent versions. |
|
![]() |
![]() |
![]() |
#13 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
First of all I managed to get those buttons in the left drawer to work properly - without adding any "file://" to the PATH string.
This is what you should add to progbutton.m script: PHP Code:
PHP Code:
Change the line 237 from PHP Code:
PHP Code:
PHP Code:
PHP Code:
Furthermore: Kameleon seems to have exactly the same problem with AlbumArt not being shown after left clicking on a button which was programmed to play a bookmarked song: So for now I cannot promise any working solutions. |
![]() |
![]() |
![]() |
#14 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
The prefix file:// is the reason why there is no Albumart shown, but when we delete it Winamp refuses to play the bookmarked song.
![]() |
![]() |
![]() |
![]() |
#15 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
I do remember my struggle with the System.playFile() command which would not play my saved bookmarks while adding Track Bookmarks feature to my skin. It turned out that this particular line in std.mi library is buggy. So Victhor had an idea to choose another approach in order to obtain files's location on the hard drive and being able to play it. I, on the other side, found out that using the plDir.mi library we could play a bookmarked song, but first we had to remove the file:// prefix. So this is what I did and now you do have AlbumArt in the window.
![]() Please delete line 128 - playFile(path) - and paste those: PHP Code:
PHP Code:
|
![]() |
![]() |
![]() |
#16 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
And when you open the file quicksongpick.m and replace the line System.playFile(filename);
with those following lines ... PHP Code:
Wait! You also have to add the plDir.mi library to the script file. Kinda cool, huh? ![]() |
![]() |
![]() |
![]() |
#17 | |||
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Quote:
![]() Quote:
Quote:
![]() ![]() |
|||
![]() |
![]() |
![]() |
#18 | ||
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Quote:
Quote:
code: but it still does not work for me. |
||
![]() |
![]() |
![]() |
#19 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
As I remember correctly, I started once the skin and got a notification about an update. So I downlaoded the 1.6 Beta WITH m-files. Quote:
![]() Last edited by PeterK.; 22nd December 2018 at 18:07. |
|
![]() |
![]() |
![]() |
#21 | |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Trying to apply your pathToURL solution for quicksongpick.m, I added these lines:
Quote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#22 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
It is the same.
Quote:
Memory Buttons section should look like this: PHP Code:
|
|
![]() |
![]() |
![]() |
#23 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
You know that you have to hold the memory button for 2 seconds untill you see the text "Song recorded" on the display?
|
![]() |
![]() |
![]() |
#24 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
The good news: The plDir solution for quicksongpick.m works fine with songs on disk.
![]() ![]() The bad news: it hangs Winamp if I want to save a stream. ![]() So it seems the plDir solution does not like streams. Both the left-drawer progbuttons and the right-side memory buttons are broken with streams if we use the plDir solution. As for the left-drawer progbuttons I do not mind losing albumart if that is the price of playing streams or songs opened with the "Type path/url" dialog. |
![]() |
![]() |
![]() |
#26 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
|
![]() |
![]() |
![]() |
#27 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
A huge THANK YOU to you, PeterK.!
That's tough. I will start a new topic about them. |
![]() |
![]() |
![]() |
#28 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Off topic: Seeing your new signature one might think we pay you for this.
![]() |
![]() |
![]() |
![]() |
#29 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
I'm just ashamed that my Vortex topics are pushing down your release announcements from the main page.
|
![]() |
![]() |
![]() |
#30 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Quote:
As long as they are on the Modern Skins page visible you do not have to worry about it. This section is not Quinto's section but ours. Right? |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|