Page 1 of 1

Pausing

Posted: Tue Jul 12, 2005 7:50 pm
by greggy
Hey

I wanted to make pausing mediamonkey easy by being able to use one of the programmable buttons above the keyboard on my laptop to pause mediamonkey, or continue playing it if it isn't already playing.

i am guessing that i will need to write a script that accesses the API to check whether mediamonkey is open and also whether it is playing or not, however i have no idea where to start doing this, so if anyone has a script or can shed some light on how to go about doing this, it would be much appreciated.

It always takes me too long to pause the song (and for some reason in the more recent versions of mediamonkey, i have found myself needing to double click the pause button) so a button on the keyboard would be useful.

thank you

Greggy

p.s. - i tried using this http://www.mediamonkey.com/forum/viewto ... ht=pausing but i could not understand it that much.

Posted: Tue Jul 12, 2005 8:33 pm
by Peke
Could you be more specific?

Are you saying that Multimedia keys do not work on your laptop?
What version of Windows you use?
What version Of MM you use?
What exactly you want to gain (Less latency)?

Posted: Wed Jul 13, 2005 3:22 am
by demm
i can't help you on the issue with the multimedia buttons, but i can tell you that if mm is playing and you click once on the monkey icon in the tray, playback will pause. it will resume if you click on it again.

Posted: Wed Jul 13, 2005 3:23 am
by greggy
hey

sorry... the keys on top of my keyboard do work, however when people call me from other rooms in my house and my music is on, it always takes me a while to stop the music.

Above the keyboard keys on my laptop i have 2 programmable buttons which i can set to perform certain actions when pressed i.e. one currently opens mediamonkey. I wanted to make the other button pause the music if it is currently playing.

I use windows xp pro, the latest mediamonkey, and just want to make it easier for me to pause so i can hear the people speaking to me from other rooms.

Thank you, and sorry about confusion

Greg

Posted: Wed Jul 13, 2005 10:22 am
by greggy
demm wrote:i can't help you on the issue with the multimedia buttons, but i can tell you that if mm is playing and you click once on the monkey icon in the tray, playback will pause. it will resume if you click on it again.
thank you

i know this is the case, i just find it easier to use the keyboard, instead of having to locate the mouse on the screen, and click on the logo.

Greg

Posted: Wed Jul 13, 2005 7:18 pm
by Peke
If you want I could Email you my Keyboard fix I made for Myself which can be programmed to act as front end/Emulation of Multimedia keys on keyboard.

Posted: Thu Jul 14, 2005 1:20 am
by onkel_enno
I use these short scripts for my keys:

Code: Select all

Option Explicit
On Error Resume next
Dim SDB
Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False

if SDB.IsRunning then
	SDB.Player.Previous
	SDB.Player.Play
end if

Set SDB = Nothing

Code: Select all

Option Explicit
On Error Resume next
Dim SDB
Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False

if SDB.IsRunning then
	if SDB.Player.IsPlaying then
		SDB.Player.Pause
	else
		SDB.Player.Play
	end if
end if

Set SDB = Nothing

Code: Select all

Option Explicit
On Error Resume next
Dim SDB
Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False

if SDB.IsRunning then
	SDB.Player.Next
	SDB.Player.Play
end if

Set SDB = Nothing
But it only workes, if MM is already running.

Posted: Thu Jul 14, 2005 4:28 pm
by greggy
You are a legend.

this works perfectly for what i want it for. thank you very much. i would only need to use it when mediamonkey is running, so that isn't a problem.

many thanks onkel_enno :D

Greg