Page 1 of 1

can you make a script that.

Posted: Sat May 27, 2006 11:27 pm
by rovingcowboy
okay am looking for a script that will change the list background image.

either automaticly at a set time or by the click of a button.

the option to override the skings background images is already in the options panel.

but that needs you to keep opning the options to change the image.

is it possible to make a script with one button on the menu bar that will pick a new background image to use in the list image area only.

i believe that the list image is the one with the most realestate on the desktop so it should be the only one to be changed, but that is just me.

the script would also need to pick the right sized image for your screen size.

here is why i came up with this idea.

it is possible to make an image larger then the ones we make for the skins.
you can make the image any size you want but it only will show the top left corner to the lower right corner of the list area your screen shows.

this makes the need for the images to be set to that size so they fill the whole playlist image area.. which makes the script need to beable to find the size image needed and pick that one.

now since this is also the playlist area it needs to be able to have the words readable. which is why there needs to be a single button on the menu bar, the button would do several things.

it would change the option for overriding the skins image to no.

and it would then pick the image from your pre made images.

and then when you wanted to use a list to do some editing the button would have to do the reverse and close the image and set the option for
overiding the skins image to no.

is that possible in script?

8)

Posted: Sun May 28, 2006 3:11 pm
by trixmoto
I don't think it's possible to change the skin images whilst MM is running. You could write a script to change the images on shutdown so that the next time you started MM they were different.

Posted: Sun May 28, 2006 3:24 pm
by rovingcowboy
no your not understanding trixmoto.

there is an option to override the back ground images in monkey

you can pick that option in the options panel in the skins panel while monkey is running.

it will turn off the skin's background images. and let you browse to pick the ones you want.

i don't think the tree list image and the now playing list image need changed as they are the smaller of the three.

but the list view image that can be changed to any size image you want as long as the corners of the image all meet the corners of the list view area on the screen, the complete image is seen.
other wise you just see the upper left corner of the image that meets the size of that list view area. in effect cutting off the right and bottom of the image.

so i am basicly wanting a button to toggle on and off the override option
with out having to open the options panel all the time.

and this button would also only toggle on or off the list view back ground image over ride option and not mess with the tree or the now playing options.

doing it with the button would give the user the choice of using an image there when they are not doing any editing. and when they want to edit a list they can turn off the over ride by clicking the button thus making the skins background image be used again.

i do this now with the options panel and i use the album art so i get what is basicly an stagnit desktop image in the list view area and the album art above the tree and the tree, above the player then the now playing on the bottom of the list view and to the right of the player.

just makes it like opening the curtians on the window and looking outside when not editing. then when editing its like closing the curtains so you can read the words.

8)

Posted: Sun May 28, 2006 3:41 pm
by Steegy
As Trixmoto said, it's impossible to change images through scripting.
It's possible to change the image file itself (the file on your hard disk, not the setting in MediaMonkey) but it would most likely only be effective when MediaMonkey is restarted.
(Changing the MediaMonkey.ini settings while MediaMonkey is running is no solution either).
Maybe this will ever become possible through scripting, but I think that most scripters (and the devs) will agree that other things should have priority.

Posted: Sun May 28, 2006 4:02 pm
by rovingcowboy
yep other things should have priority agreed

but i know you can toggle on and off options already set in the monkeys option panel while monkey is running.

so the changing of the image will be done when monkey is running.

it is just that now having to go to the options panel all the time to turn on and off the over ride option is what i was wanting changed to a button.

maybe that can be more of a wish list thing. but i also know buttons can be added by scripts as diddeleedoo has added 3 of them so far. :)

yes they are needed to be done when the script starts up with monkey. but you have to put most scripts in the folder when monkey is closed. so the chaning of the ini is no trouble. 8)

i know this part of the skin will not change in monkey's next version,
which is why i asked for the script. :D

i however just wanted to change the one override option for the list image.
but if that can all be coded in to the button to make it select only that over ride option. i don't know? it might need to toggle all the background images override options.?
but still the user can go in to the opitions panel and set the images manualy. but it would be nice to toggle the override option with a button. 8)
it would be great if the same said button would also change the users manual setting for the images. but that must be to hard to do with a button, since it involves browsing to the images.?

how ever the images could be set with urls then the button would just jump to the next local url for the next image every time the button was clicked?

but then that also involes an option sheet so the urls could be set for the button to use? :-?


so back to the button doing only the togglling on and off of the override option and the user needing to first set the image in the options panel.

all this does is give more customization to the skin by the user..
8)



you know something like

dim button
dim skins background override image option

button on click = skins background override image option =1
button on click 2 = skins background override image option = 0

:o 8)

no idea if that is how you code it but that is what i am thinking.

:D

Posted: Sun May 28, 2006 4:06 pm
by trixmoto
As far as I'm aware what you are asking for cannot be done via a script. Sorry.

Posted: Sun May 28, 2006 4:17 pm
by rovingcowboy
don't you two see

my problem?

two of the fastest and best coders for media monkey

telling me they can not make an on off button via
script that controls an option?

that is hard to believe.

the option is an automatic option when you turn it on via the
options panel it works instantly.
when you turn it off via the options panel it closes instanly?

so the button would work like an light switch?

are you telling me that buttons can only turn on and off scripts?

and not options?

:-?

Posted: Sun May 28, 2006 4:41 pm
by Steegy
Of course adding buttons and letting them do "things" is no problem.

The problem *in this case* is that the "things" (changing the option from the Options panel) is not possible.

E.g. the button event could be

Code: Select all

Sub Button_OnClick(Button)

    SDB.Options.Appearance.BackgroundOverride = Not SDB.Options.Appearance.BackgroundOverride

End Sub
This code would toggle the "background override" option (between True and False). The problem is: this is a imaginary example, the real code doesn't exist. (everything after SDB. doesn't exist in the scripting possibilities).

Maybe Diddeleedoo can explain it better to you :roll: ?

Posted: Sun May 28, 2006 4:46 pm
by rovingcowboy
okay you just agreed on my last statement in the last message i posted.

buttons can not control options.

well thats another fine idea shot down in it's prime. 8)