Page 2 of 15
Posted: Wed Apr 19, 2006 9:06 pm
by Steegy
Tweakerdetweak:
http://www.mediamonkey.com/forum/viewto ... highlight=
SDB.Player.isShuffle
SDB.Player.isRepeat
SDB.Player.isAutoDJ
(all boolean: True/False)
Setting these things on startup have been asked also in the past, so since they are now available, you can add them to your script.
Cheers
Steegy
Posted: Wed Apr 19, 2006 9:56 pm
by Teknojnky
/Cheers!
Posted: Thu Apr 20, 2006 4:48 pm
by Teknojnky
Updated script, added shuffle/repeat options, added framework for randomize playlist options, and for explore/command prompt here context menus.
edit: its back, I had an error pop up, but I was middle of typing and I did not get to see who/what/where it was from. On 2nd run, it appears to function fine, however please post if you come accross any errors.
edit2: changed the root sheet text in case anyone wants to include their script options under the tweakmonkey root.
Posted: Thu Apr 20, 2006 5:01 pm
by Steegy
edt.Common.Hint = "Resume song from last play (not yet functional)"
Why is that?
Am I right to conclude that it's now possible to set isShuffle and isRepeat to True on startup, but it's not possible to set it to False? Please add the second posibility too, as is has been asked in the past.
Cheers
Steegy
Posted: Thu Apr 20, 2006 5:03 pm
by Teknojnky
Steegy wrote:edt.Common.Hint = "Resume song from last play (not yet functional)"
Why is that?
Am I right to conclude that it's now possible to set isShuffle and isRepeat to True on startup, but it's not possible to set it to False? Please add the second posibility too, as is has been asked in the past.
Cheers
Steegy
The auto-resume functionality I wanted to add is like an auto-resume for an mp3 or cd player... meaning the song resumes to the time it stopped it during play.
IE if you shut down MM in the middle of a song, it starts where it left off at.
I added the options, I just had not have time to figure out how to implement it.
Posted: Thu Apr 20, 2006 5:16 pm
by Steegy
Continue from last playback position:
Does this help: SDB.Player.PlaybackTime ?
You can probably save the value in the "OnShutDownEvents" method, and just read the value an startup of the script, and set is back.
About the implementation for the options:
I see three possibilities:
- 1 three-state checkbox (impossible, no not really a possibility)
- 2 checkboxes (1 enable, 1 true/false) that work seperately
- 2 checkboxes (1 true, 1 false) that work together as a combination of "option buttons" and "checkbuttons" (it behaves as option buttons, but you can clear a checked option button too, so nothing is checked
Cheers
Steegy
Posted: Thu Apr 20, 2006 5:35 pm
by Teknojnky
Yup! I haven't got around to implementing any shutdown events yet, I still have alot to read/learn about them.
BTW, Steegy, Psyxonova, Trixmoto & and any other scripters are welcome to check for tweakmonkeyconfig.vbs and store your option sheets under the 'tweakmonky & scripts options' sheet.
If its even possible, that is...
You could even add some labels to the root sheet to credit yourself so it does not look like it's my work.
I'm not quite sure how you can get the TweakSheetRoot ParentID in order to add a subsheet to a different scripts options or add more labels to the root sheet.
Posted: Thu Apr 20, 2006 7:05 pm
by MarineBrat
I get the following error with v0.41 when I click on the OK button.
Error #9 - Microsoft VBScript runtime error
Subscript out of range: 'sheet.Common.ChildControl(...).ItemIndex'
File: "C:\Program Files\MediaMonkey\Scripts\Auto\TweakMonkeyConfig.vbs", Line: 767, Column: 2
Posted: Thu Apr 20, 2006 7:12 pm
by Teknojnky
Hmm, that means the array is out of bound somehow, make sure you select a startup node. That line is where the startup node index is saved, im guessing that its set to an invalid or null index.
edit:
I jsut double checked by removing the startup node ini entry and yeah I need to set the dropdown index to a valid number if it doesnt exist.
Will be fixed next update, in the mean time just set the startup node to now playing or library or whever your preference is.
Posted: Fri Apr 21, 2006 7:08 pm
by Teknojnky
Updated Tweakmonkey to include setting options for AutoRateSongs and fixed subscript error.
Note, AutoRateSongs may not yet be updated to read the ini settings, please refer to the AutoRateSongs thread.
Posted: Fri Apr 21, 2006 7:10 pm
by danielbritt
heres a couple of things you can look at:
1. i *hate* how the track numbers cant be changed to the format i tagged them with (01, 02, 03 etc..) if you could set up a tweak to format the column to whatever format i (or others want) that would be nice.
2. if you look at tag&rename there are a lot of tag formatting options that would be nice additions to MM.
thanks in advance, daniel
Posted: Fri Apr 21, 2006 7:17 pm
by Teknojnky
Unfortunately, tweakmonkey can't change options that are not available within MM or scripts.
Until the dev's make that behaviour optional, we will be stuck with it.
I'm not familar with tag & rename, but I think the same applies here, Tweakmonkey only changes thing which MM allows to be changed.
If there is an INI or some way to change a behaviour via script, then I can see about adding it.
Posted: Sat Apr 22, 2006 6:21 am
by DiddeLeeDoo
I had a study of your script here, and got an understanding to how Option Sheets and INI file work. Thank you for posting this excellent script, and giving me a kick in the back to get an option sheet happening
Coming up in next version for sure!
Posted: Sat Apr 22, 2006 12:26 pm
by rovingcowboy
hey this is great but some of the options are not working yet?
any idea how long before you get them working?
no i am not talking about the rating ones.
Posted: Sat Apr 22, 2006 12:35 pm
by DiddeLeeDoo
The process do no not take long, it's doing it well that takes a bit of time. Shouldn't be more than a few days before something new is coming.