Adding buttons to a script ?

Post a reply

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

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Adding buttons to a script ?

Re: Adding buttons to a script ?

by onenonymous » Wed Aug 06, 2008 7:51 am

nynaevelan wrote:Now that is interesting, I hope when you get it up and running you will also include this update in Right Click 4 Reports?? :wink:

Nyn
of course... :-)
trixmoto wrote:When doing this you need to be careful of some of the events and stuff - someone tried to add a button to my "Previewer" script using an external script and all of the buttons broke! :)
Shouldn't be a problem, but I'll make sure. The buttons I create will work essentially the same way as my right-click menus. So if it works there, it will work from a button.
Thx!

Re: Adding buttons to a script ?

by trixmoto » Wed Aug 06, 2008 7:24 am

When doing this you need to be careful of some of the events and stuff - someone tried to add a button to my "Previewer" script using an external script and all of the buttons broke! :)

Re: Adding buttons to a script ?

by nynaevelan » Wed Aug 06, 2008 4:55 am

onenonymous wrote: I'm working on an update to my Right Click for Scripts (link is in my signature) that will allow you to create a toolbar button for any of the scripts available off my Right Click menus. I think the 3 scripts you mentioned would be in that category. I'm hoping to have first beta done to post this weekend. If all you want is Right Click access to those scripts, then my script will do it. If you want a button, then wait for my update.
~One
Now that is interesting, I hope when you get it up and running you will also include this update in Right Click 4 Reports?? :wink:

Nyn

Re: Adding buttons to a script ?

by -SuperFunk- » Wed Aug 06, 2008 4:49 am

Thank you,
I will check it after the weekend then, I hope it makes things easier! :D

Re: Adding buttons to a script ?

by onenonymous » Tue Aug 05, 2008 6:28 pm

-SuperFunk- wrote:Hey guys,
interesting topic here, it has to do with my problem
I tried to understand the programming-code but i don't know nothing about that, so my question is if somebody could help me to create a Shortcut for 3 scripts i Use a Lot ...
I'm working on an update to my Right Click for Scripts (link is in my signature) that will allow you to create a toolbar button for any of the scripts available off my Right Click menus. I think the 3 scripts you mentioned would be in that category. I'm hoping to have first beta done to post this weekend. If all you want is Right Click access to those scripts, then my script will do it. If you want a button, then wait for my update.
~One

Re: Adding buttons to a script ?

by -SuperFunk- » Tue Aug 05, 2008 4:24 pm

Hey guys,
interesting topic here, it has to do with my problem
I tried to understand the programming-code but i don't know nothing about that, so my question is if somebody could help me to create a Shortcut for 3 scripts i Use a Lot:

1. PersonalTagEnhancer
http://www.mediamonkey.com/forum/viewto ... agenhancer
2. Auto-Increment TrackNumbers
and
3. The Case checker

I would appreciate any help :)

by The Crow » Tue Jan 08, 2008 8:45 am

The standard tool-bar is visible only partly: The edit and the three play-buttons are displayed. As the remaining buttons (Visualization,...) are inaccessible as well, I don't think it's possible to modify this party mode setting.
However it's possible to set a hotkey which is available in party mode.

PS: I just noticed another behaviour: When running Previewer script by hotkey the interrupted song always restarts from the beginning. Starting the script by Tools/Scripts or the "Previewer button" works fine.

by trixmoto » Tue Jan 08, 2008 4:36 am

Well the button appears on the standard toolbar, is this not visible in party mode? Are there any toolbars which do?

by The Crow » Mon Jan 07, 2008 6:13 pm

Excellent! Thanks!

By the way, is it possible to get the button displayed in party mode as well? That would be nice but it doesn't greatly matter.

by trixmoto » Mon Jan 07, 2008 4:44 am

You need to add this...

Code: Select all

Sub OnStartup
    With SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard, 0, 0)
        .Caption="Previewer"
        .IconIndex=50
        .UseScript=Script.ScriptPath
        .OnClickFunc="DoPreviewer"
    End With
End Sub

Sub DoPreviewer(obj)
  Call Previewer
End Sub 
...above the "Previewer" sub procedure and move the file to the Auto folder. You'll then need to amend the file path in the Scripts.ini file if you want to use the menu bar as well.

by The Crow » Sun Jan 06, 2008 6:17 am

Any chance of getting the PreviewerButton script working with the actual version of Previewer script? At the moment the PreviewerButton script can't handle the -30s, -5s, Pause...-buttons.

by chaussettdeguerr » Thu Jul 19, 2007 3:27 pm

really wonderful diddeleedoo
thanks a lot

MAGIC

by arcspin » Sun Dec 03, 2006 1:26 pm

Hey DiddeLeeDoo,
Wouderfull!

This is truly magic, I past some text into notepad and like magic a button appears in MM.

I'm so glad you guys take the time and help people like me out, without you MM would not be the best manager out there !!

Thanx again,

(I'm sure I will come back when I need more favours from you magicians)

//P

by DiddeLeeDoo » Sun Dec 03, 2006 8:20 am

I see Trixmoto have added a keyboard shortcut being Shift+Alt+P.

That script above should look something like this to work with Trixmoto's Previewer. Maybe he'll consider doing a button as a feature in the next version.

Make a new notepad document, copy the code to it, and save it to your \Scripts\Auto folder.
Use " (double quotes) in front and at the end of the file name when you save, like "PreviewerButton.vbs"

Code: Select all

'\MediaMonkey\Scripts\Auto\PreviewerButton.vbs
Sub OnStartup
    With SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard, 0, 0)
        .Caption="Previewer"
        .IconIndex=50
        .UseScript=Script.ScriptPath
        .OnClickFunc="DoStuff"
    End With
End Sub

Sub DoStuff(o)
     Script.Include SDB.ApplicationPath & "Scripts\Previewer.vbs"
     Previewer
End Sub
Revised code. Should add a speaker icon to your toolbar called Previewer after restarting MM.

If so, then...

by arcspin » Sun Dec 03, 2006 7:52 am

Hey,
Trixmoto have made this awsome scrpit that lets you preview a song without interuping the current playlist.
That is a script that I would love a button attached to.
http://www.mediamonkey.com/forum/viewto ... =previewer


Merry X-mas
//P

Top