AutoHotkey Community

It is currently May 27th, 2012, 3:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: January 14th, 2007, 2:38 am 
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.
8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2009, 8:49 am 
Hy , that link dosent work no more , plees can jou give other , thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2009, 2:24 pm 
Offline
User avatar

Joined: January 25th, 2006, 8:08 am
Posts: 225
Location: Froschtümpel
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2009, 6:10 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2009, 9:33 am 
Offline

Joined: February 28th, 2008, 8:02 pm
Posts: 100
Location: Krk, PL
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: not working
PostPosted: July 13th, 2010, 3:25 pm 
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....


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group