Performance questions

发表回复

表情
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode 允许
[img] 允许
[url] 允许
表情 允许

主题浏览
   

展开视图 主题浏览: Performance questions

Re: Performance questions

raybeau528 » 周四 1月 15, 2009 10:44 am

The new property, Get/Let MainWindowFocus helps make this work now!

sdb.ui.mainwindowfocus=2
oShell.SendKeys "^a"
oShell.SendKeys "%{Enter}"

Ray

Re: Performance questions

raybeau528 » 周四 1月 08, 2009 7:40 pm

Technojnky,

Thanks for the info about the window focus! That may help these kind of situations.

Ray

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 6:05 pm

I had no idea what soundex was, but from a quick search it appears to have something to do with similarity matching, which I would guess probably has something to do with the full text searching being added for 3.1x.

I don't think we can expect to know everything about everything, nor the what or why somethings get implemented at what point in time. I think the wiki and recent making public bug tracker are steps towards greater transparency, but to expect the full who/what/why/how for every detail is a bit much.

I expect they are trying to do the best they can with the resources given, and try to improve both the process and product when and where as much as possible.

Re: Performance questions

ZvezdanD » 周四 1月 08, 2009 5:58 pm

I am just wondering who wanted SOUNDEX SQL function? And could you somebody tell me why we need Sin function with musical database? Instead to implement RegExp or InStrRev functions, they are adding some unimportant stuff. :(

Re: Performance questions

ZvezdanD » 周四 1月 08, 2009 5:53 pm

Teknojnky 写了:They also post threads when major/important changes are/will be occuring, see for example the recent thread on script instances.
You are joking, right? ;) That is only one information which we got from MM developers in last two years.

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 5:52 pm

Re: Performance questions

ZvezdanD » 周四 1月 08, 2009 5:49 pm

I just tried it - it doesn't work with b1209. Thanks for the information about Recent Changes.

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 5:37 pm

ZvezdanD 写了:MM developers really should inform us when they add such thing.
What I do is simply click Recent Changes from the main wiki page.

This was just added earlier today... Honestly, between the build/release notes and the wiki changes, IMO that is all that is needed for most things.

They also post threads when major/important changes are/will be occuring, see for example the recent thread on script instances.

edit: you can also subscribe to rss feed for that page (or any other specific page), see the toolbox section

Re: Performance questions

ZvezdanD » 周四 1月 08, 2009 5:31 pm

Teknojnky 写了:edit:
I just happened to check the wiki and this was just added that might help:

http://www.mediamonkey.com/wiki/index.p ... indowFocus
MM developers really should inform us when they add such thing. I asked Jiri several times about this without any response.

Thank you very much for information!

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 5:23 pm

raybeau528 写了:
A hint, you do not need to use control a to select all files, when the tree node has the focus then all files will be selected with sdb.currentsonglist
True, except from a script the tree node doesn't maintain focus.
Huh?

the current focus should not change when any menu is clicked.

if the menu is a pop_tree, then only the tree should ever have the focus. Other menus might have varying focus, but the object they passed should never change, and if the focus changes it must the result of some action within the script (but that should never change the initial object that was passed).
just click on a node, then go to the now playing window, clear it, click on it, and press {Enter} or {Alt+Enter} and report what you find.
Well, with the current mm 3.1 beta 1209, doing this does nothing, the now playing list remains clear.


edit:
I just happened to check the wiki and this was just added that might help:

http://www.mediamonkey.com/wiki/index.p ... indowFocus

Re: Performance questions

raybeau528 » 周四 1月 08, 2009 5:07 pm

A hint, you do not need to use control a to select all files, when the tree node has the focus then all files will be selected with sdb.currentsonglist
True, except from a script the tree node doesn't maintain focus. You can work through some of the scripts I provided or just click on a node, then go to the now playing window, clear it, click on it, and press {Enter} or {Alt+Enter} and report what you find.
raybeau528 wrote:2. The command, oShell.SendKeys "%{Enter}" (ALT+Enter), doesn't trigger the Play Now action

I just tried and it works.
Please tell me more. Can you provide a sample script? Thanks!

Ray

Re: Performance questions

ZvezdanD » 周四 1月 08, 2009 4:54 pm

raybeau528 写了:2. The command, oShell.SendKeys "%{Enter}" (ALT+Enter), doesn't trigger the Play Now action
I just tried and it works.

Re: Performance questions

raybeau528 » 周四 1月 08, 2009 4:49 pm

perhaps the delay has more to do with inserting the selected tracks into an existing (now playing) songlist vs adding a whole new (now playing) songlist.
I believe you are correct.

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 4:05 pm

play selected only = queue next + advance track

perhaps the delay has more to do with inserting the selected tracks into an existing (now playing) songlist vs adding a whole new (now playing) songlist.

Re: Performance questions

Teknojnky » 周四 1月 08, 2009 3:38 pm

I see.

A hint, you do not need to use control a to select all files, when the tree node has the focus then all files will be selected with sdb.currentsonglist

ie

sdb.player.playlistaddtracks(sdb.currentsonglist)

perhaps the performance your desiring may be there using that. (edit: actually I would guess it be the same, since your still adding a songlist object in any of the 3 methods, currentsonglist, selectedsonglist, allvisiblesonglist)

I would guess that the difference between 'play now' and playlistaddtracks(sdb.allvisiblesonglist) has to do with how the songs are added internally (by song id vs path or whatever).

页首