• Welcome to Valhalla Legends Archive.
 

Binding Winamp Commands to Keys

Started by j0k3r, November 28, 2003, 07:38 AM

Previous topic - Next topic

j0k3r

Quote from: j0k3r on November 09, 2003, 09:28 PM
Would there be any way for you to create a script that I can bind to my keyboard keys? It seems like you know what's going on here, and I just can't understand how to get commands for winamp or how to make scripts.

To start, yes this is from awhile ago and I've been looking into it more recently, and not that I'm any smarter than I was back then but I decided to use my head a little more. I am trying to get a script or something bound to the keys on the top part of my keyboard (those keys in the very top middle, sort of looks like a watch) so that I don't have to minimize a game to change songs or turn it off.

Having little real programming experience I didn't know how to go about this, so I started looking through the winamp codes that they provide with winamp 3, and in std.mi(?) I found these...
Quote/**
setVolume()

Set the volume to the desired value.
Range is from 0 to 255.

@param vol  The desired volume value.
*/
extern System.setVolume(Int vol);

/**
play()

Trigger the play event.
*/
extern System.play();

/**
stop()

Trigger the stop event.
*/
extern System.stop();

/**
pause()

Trigger the pause event.
*/
extern System.pause();

/**
next()

Trigger the next event.
*/
extern System.next();

/**
previous()

Trigger the previous event.
*/
extern System.previous();
Now here is the part that's tricky, how would I go about using these commands in individual files so that I can bind them to the keys at the top? I've tried creating a script the best I can and binding it through the settings the keyboard provides, but I was unable to.
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

j0k3r

#1
On another note, when you have winamp as your main window, you can play, stop, or pause songs by simply pressing a (different) key. Another method I've thought of is creating a script to send those key commands to winamp, if that is possible.

[edit]Grammar[/edit]
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

j0k3r

Now that you more knowledgable folks are home...
*bump*

Any suggestions/ideas?
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

Adron

I've posted on this topic before. Nothing new since then :P