AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WACommand - Control WinAMP via the console [CMD]

 
Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
BoBo
Guest





PostPosted: Sun Jan 14, 2007 1:38 am    Post subject: WACommand - Control WinAMP via the console [CMD] Reply with quote

Quote:
WACommand - It's simple, it lets me control winamp from the little multimedia buttons on my keyboard. Basically it lets you control winamp from the command line.

I bought a new keyboard; it's got these little buttons on it, which could be very handy were it not for the fact that they either control a built in CD player or run a single DOS command. The built in CD player is a bit pants and I use winamp anyway, but I couldn't find a way to control winamp from the command line. So here is a little program that takes a command line parameter and sends winamp a windows message to make it do stuff.

With all this, the 'play' button on my keyboard contains the command line WACommand.exe /play... and it plays! Genius. Umm.

[Download] - [Download Source]


Quote:
Using WACommand
"WACommand.exe <option>" where '<option>' is one of these...

/play Start playback
/prev Skip to previous track
/next Skip to next track
/stop Stop playback
/stopfade Stops playback with fadeout
/stopafter Stops playback after current track
/pause Pause playback, or restart if it is already paused.
/playpause Starts playback if it is stopped or paused; Pauses playback if it is playing.
/fwd Fastforward 5 seconds
/rev Rewind 5 seconds
/cd<number> Begin playback of a CD. "/cd" or "/cd1" will use the first CD drive; "/cd2" will use a second; and so on. For the order, and to ensure Winamp recognises the drives, look in Winamp's main menu in the "Play >" section.
/random Sets the state of shuffle mode. "/random" on its own will toggle the state of the random option. "/random=1" will turn random playback on; "/random=0" will turn it off.
/repeat Sets the state of repeat mode, in exactly the same way as "/random", above.
/volup Increases the volume by 5%
/voldown Decreases the volume by 5%
/vol=<1-100> Sets the volume to the specified number. "/vol=0" silences Winamp; "/vol=100" sets full volume.
/jumpto Opens "Jump to file" window
/quit Closes Winamp.
/start
Starts Winamp (if you don't like starting it directly, for some reason)


So for example, "WACommand.exe /next" will jump to the next track in the playlist, just as if you'd clicked winamp's Next button.
Cool
Back to top
munge83
Guest





PostPosted: Mon Apr 06, 2009 7:49 am    Post subject: Reply with quote

Hy , that link dosent work no more , plees can jou give other , thanks
Back to top
hoppfrosch



Joined: 25 Jan 2006
Posts: 190
Location: Froschtümpel

PostPosted: Mon Apr 06, 2009 1:24 pm    Post subject: Reply with quote

munge83 wrote:
Hy , that link dosent work no more , plees can jou give other , thanks


A little googling immediately leads to a result - don't be so lazy, guys!

For example - googling for "winamp wacommand"
http://nunzioweb.com/daz/WACommand/index.html
Back to top
View user's profile Send private message Visit poster's website
n-l-i-d
Guest





PostPosted: Mon Apr 06, 2009 5:10 pm    Post subject: Reply with quote

If you search the forum (and the documentation), you will find numerous scripts dealing with conrolling WinAmp, no need for a seperate command line utility.

HTH
Back to top
m^2



Joined: 28 Feb 2008
Posts: 100
Location: Krk, PL

PostPosted: Tue Apr 07, 2009 8:33 am    Post subject: Reply with quote

There was a very similar tool in some TWinamp version (Total Commander plugin to control Winamp).
_________________
Benjamin Franklin wrote:
Anyone who trades liberty for security deserves neither liberty nor security.
Back to top
View user's profile Send private message
arungtm
Guest





PostPosted: Tue Jul 13, 2010 2:25 pm    Post subject: not working Reply with quote

Code:

<?php

if(isset($_GET['c']))
{
   $command='WACommand.exe /'.$_GET['c'];
   $exec=exec($command." 2>&1");
   if($exec){echo $_GET['c'];}
   echo $command;
}

?>
<form action="c.php" method="get">
<input type="radio" name="c" value="playpause" /> Play/Pause<br />
<input type="radio" name="c" value="pause" /> Paus<br />
<input type="radio" name="c" value="next" /> Next<br />
<input type="radio" name="c" value="prev" /> Previous<br />
<input type="radio" name="c" value="fwd" /> +5 sec<br />
<input type="radio" name="c" value="rev" /> -5 sec<br />
<input type="radio" name="c" value="startmin" /> Start<br />
<input type="radio" name="c" value="quit" /> Quit<br />
<input type="radio" name="c" value="volup" /> Vol +<br />
<input type="radio" name="c" value="voldown" /> Vol -<br />
<input type="submit" value="Run" />
</form>


Above is the php script i wrot to control win amp with the help of WAComman but this doesnot work

i tried using nircm.exe all the function of nircmd.exe works fine with above command but this WACommand doesnot work....

the only proble is that nircmd.exe doesnot support to control winamp.

it only can open/close cd rom, set volume and other and other commands...

the main purpost to use this that my 1 pc is running 24 hrs a day so i would like to control it from mu cell phone via GPRS internet

but....
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group