Search found 36 matches
- Tue Aug 29, 2023 10:26 am
- Forum: MediaMonkey 5 developer forum
- Topic: Problem closing a modal window when clicking the OK button
- Replies: 3
- Views: 1986
Re: Problem closing a modal window when clicking the OK button
Thank you for the explanation. Everything is clear now.
- Tue Aug 29, 2023 10:22 am
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Thank you very much!
My problem was that I declared the variables with let or const instead of using var.
Your explanation solved my issue.
My problem was that I declared the variables with let or const instead of using var.
Your explanation solved my issue.
- Mon Aug 28, 2023 4:24 am
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Hi, I'm sorry. I think I missed your answer from about a year ago. I'd like to rephrase my question. I think I understand better what I'm missing. I'm using the mainWindow._window to set variables from one secondary window that will be used in another secondary window. This works. The problem is tha...
- Sat Aug 26, 2023 11:23 am
- Forum: MediaMonkey 5 developer forum
- Topic: Problem closing a modal window when clicking the OK button
- Replies: 3
- Views: 1986
Re: Problem closing a modal window when clicking the OK button
I think I managed to find the solution. I looked at the OK button of the About dialog and changed my code according to the following code that is inside the init function of the About dialog: window.localListen(qid('btnOK'), 'click', function () { closeWindow(); }); After I moved the listen function...
- Sat Aug 26, 2023 7:36 am
- Forum: MediaMonkey 5 developer forum
- Topic: Problem closing a modal window when clicking the OK button
- Replies: 3
- Views: 1986
Problem closing a modal window when clicking the OK button
Hello! I'm developing an addon that opens a settings window where I can configurate things like the background color of another window that will be open later. The settings window has a button that opens a modal window (called dlgColorPicker) that has a color picker tool, a OK button and a Cancel bu...
- Sat Sep 24, 2022 2:59 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Problem when combining sync with async function
- Replies: 3
- Views: 1747
Re: Problem when combining sync with async function
Of course! Promises... Have to get used to JavaScript...
It seems to work perfectly now. Thank you!
It seems to work perfectly now. Thank you!
- Fri Sep 23, 2022 8:18 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Problem when combining sync with async function
- Replies: 3
- Views: 1747
Problem when combining sync with async function
Hello, I have written a script that, when the button is clicked, the volume is slowly lowered and then the player plays the next song and brings the voluma back to its previous level. const volumeToSet = 0 const durationToSet = 3 // 3 secs to lower the volume to 'volumeToSet' and start next track co...
- Wed Sep 21, 2022 5:43 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
There are many ways you can do it, but here's an example with custom events. You can pass data through the detail parameter of createNewCustomEvent(). See: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent Main window: https://i.imgur.com/vxTZxup.png Dialog window: https://i....
- Sat Aug 20, 2022 5:09 am
- Forum: Need Help - MMW5
- Topic: Sync doesn't update new playlists in folders
- Replies: 1
- Views: 209
Sync doesn't update new playlists in folders
Hello My playlists are arranged in 4-5 levels folder structure. https://ibb.co/ygpRBWw The playlist marked with the red pen was added just lately, after the sync profile was created. After I performed the sync I realized that the new playlist was missing. The reason is that the new playlist wasn't u...
- Wed Aug 17, 2022 3:40 am
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Hello! My program looks stable and does the main logics of the job. Before I write the next question/problem, I'd like to explain in a line or two what the program does. I added a menu in the MM5 main window that opens a second window. Following is the code in the actions_add.js actions.openDanceFlo...
- Fri Aug 12, 2022 1:01 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
I figured out how to use the 'change' event on the 'getSongList' method. I'm using the events with the parameter 'delete' and with no parameter and everything works fine besides the fact that it triggers the event several unnecessary times. I assume the triggers will be more accurate when the But me...
- Thu Jul 21, 2022 3:08 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Thank you!
I think I need to do some homework.
I think I need to do some homework.
- Thu Jul 21, 2022 2:14 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Maybe I understand now. So I'm actually checking the change in a list, not an event as I'm used to. Is it right?
And in that case, I have to set a loop where the list variable gets the new list and the "change event" does the rest.
Am I seeing it right?
Thank you!
And in that case, I have to set a loop where the list variable gets the new list and the "change event" does the rest.
Am I seeing it right?
Thank you!
- Thu Jul 21, 2022 11:14 am
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Thank you for the response!
Can you show me how the workaround line looks?
Maybe something like:
app.listen(app.player.getSongList(), 'change', eventFunction);
Thanks,
Marcelo
Can you show me how the workaround line looks?
Maybe something like:
app.listen(app.player.getSongList(), 'change', eventFunction);
Thanks,
Marcelo
- Mon Jul 04, 2022 3:17 pm
- Forum: MediaMonkey 5 developer forum
- Topic: Sending Player info to a window
- Replies: 32
- Views: 18832
Re: Sending Player info to a window
Haven't tested to make sure, but both should fire with nowPlayingModified: https://www.mediamonkey.com/docs/api/files/native_FullPlayer.js.html#event_nowPlayingModified Thank you for the prompt response. I think it doesn't work. I hope I'm wrong. I'll try again. Meanwhile, I'm using SetTimeout to s...