Skocz do zawartości


tablety.pl
Zdjęcie

CLAmp - WinAmp z linii wiersza poleceń




  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Kolega Dudysa

Kolega Dudysa

    Good Rank

  • Na emeryturze
  • 700 postów
  • Płeć:Mężczyzna

Napisano 22 09 2008 - 14:39

CLAmp to niewielkich rozmiarów narządko, działające z lini wiersza poleceń, nie wymagające instalacji. Pozwala na obsługiwanie Winampa z poziomu powłoki tekstowej. Zawiera w sobie wiele poleceń obsługi jak kontrola play listy, equalizera, odczytywanie informacji o Winampie, o instalacji Winampa, zarządzać oknem. Program doczekał się wersji CLAmp v1.13. Nie testowałem na starszych wersjach odtwarzacza. Program dostępny pod adresem CLAMP - Command Line Winamp. Licencja: Freeware. Polecenia programu:

Program Control


START - Start Winamp
QUIT - Exit Winamp
RESTART - Restart Winamp
TOFRONT - Bring Winamp window to front


General Control


PLAY - Play (current file) - Quits Stopped or Pause mode
STOP - Stop playing
STOPFADE - Stop playing with fadout
STOPAFTER - Stop playing after current track (returns now, stops later)
PAUSE - Toggle pause mode
PAUSE ON|OFF - Sets pause mode
PLAYPAUSE - Same as PAUSE
NEXT - Play next song
PREV - Play previous song
FWD - Forward 5 seconds
FORWARD - Same as above
REW - Rewind 5 seconds
REWIND - Same as above
RESTART - Restart current track from beginning (not working with Winamp 2)
JUMP <time> - Seek to <time> (in millisecs)
QUITAFTER - Close winamp upon completion of current track - CLAmp will not return immediately


Winamp Modes


REPEAT - Toggle Repeat mode
SWREPEAT - Same as above
REPEAT ON - Set Repeat mode ON
REPEAT=1 - Same as above
REPEAT OFF - Set Repeat mode OFF
REPEAT=0 - Same as above
REPEAT STATUS - Query REPEAT status (ON, OFF)
GETREPEAT - Same as above
RANDOM - Toggle Random mode
RANDOM ON - Set Random mode ON
RANDOM=1 - Same as above
RANDOM OFF - Set Random mode OFF
RANDOM=0 - Same as above
RANDOM STATUS - Query RANDOM status (ON, OFF)
GETSHUFFLE - Same as above


PlayList Control


PLADD <file> - Add file(s) to end of playlist (like drag-n-drop)
LOAD <file> - Same as above
PLCLEAR - Clear Playlist
CLEAR - Same as above
PL - Show/Hide Winamp Playlist window
PLWIN - Same as above
PLPOS - Query Playlist position (requires Winamp 2.05+)
PLFIRST - Play first item of playlist
PLLAST - Play last item of playlist
PLSET <num> - Set current playlist item
(note this does not interfere with curring playing, if needed, use /PLAY after to go to this item)
PLSET RANDOM - Set current playlist item to a random item within playlist
SETPLPOS - Same as PLSET
LOADNEW <file> - Same as /PLCLEAR /PLADD <file>
LOADPLAY <file> - Shortcut for /PLCLEAR /PLADD <file> /PLAY
PLSAVE <file> - Saves current playlist to <file> (as a M3U file)


Winamp Volume Control


VOLUP [X] - Volume up
VOLDN [X] - Volume down
VOLSET <value> - Volume set (scale 0-255)
VOL=<value> - Volume set (scale 0-100)
VOLMAX - Volume max
VOLMIN - Volume min (no sound)


Windows Volume Control

Syntax: CLAMP /WAV <command> <args>
This set of commands will *not* start Winamp if not already running (no need to do so)

WAV MUTE ON - Mutes speaker
WAV MUTE OFF - Unmutes speaker
WAV VOLGET - Prints current Windows volume as two figures (left speaker, right speaker)
WAV VOLSET <value> - Sets volume (for both speakers) on a 0-65535 scale
WAV VOLSET MIN - Sets volume to zero (for both speakers)
WAV VOLSET MAX - Sets volume to maximum (for both speakers)


Infos


POS - Query current position in file and track length
PATHNAME - Display pathname of current track
POSITION - Query current position in file only
STATE - Query current state (PLAYING;PAUSED;STOPPED;NOT RUNNING)
STATUS - Synonym for STATE
TITLE - Query current track title (Note that, as string is returned by Winamp, it uses a Windows charset - special characters might be corrupted in a DOS window)
VER - Query Winamp version


TRACKINFO <INFO> - Info on current track
POS = current position (MM:SS)
LENGTH = track length (MM:SS)
BITRATE = bitrate in KBPS
SAMPLERATE = Sample rate in KHz
CHANNELS

If no track current being played, result is zero (0 or 00:00)
PLINFO <INFO> - Info on playlist
POS = current position
LENGTH = playlist length
Note that even if play list is empty (Length = 0), pos is still 1.


Track rating

RATING - Display current track's rating (1 to 5, 0 = No rating)
RATING=X - Set rating for current track


Winamp Interactive Windows

ABOUT - Display Winamp About window
PREFS - Display Winamp Preferences window
OPEN - Display Winamp Open File window
MEDIALIBRARY - Opens MediaLibrary
VIDEOFULLSCREEN - Toggles video window full screen mode - Works only if video window is open - This option has issues


Equalizer Control

EQWIN - Toggle Eq window (Works with Classic skins only)
EQINFO - Query Eq parameters (10 bands, Preamp, Status, Autoload)
EQSET <parms> - Set Eq parameters (Same format as EQINFO)
EQSTATUS - Toggle Eq status (ON / OFF)
EQSTATUS ON - Set Eq status ON
EQSTATUS OFF - Set Eq status OFF


Winamp Display

ONTOP - Toggle Always On Top option
MAINWIN - Toggle Main Window (Show / Hide)
MINIMIZE - Minimize Winamp


Visualization plug-in

VISUEXEC - Toggles visualization plug-in
VISUEXEC ON|OFF - Sets visualization plug-in on or off
VISUEXEC STATUS - ON if running, OFF if not running


Bookmarks management

BOOKMARK <file> - Add <file> to bookmarks
BOOKMARK CURRENT - Add current track to bookmarks


Skin management

SKINGET - Display name of current skin
OPGET - Display name of output plug-in
OUTPUTPLUGIN - Same as OPGET

Winamp install

INSTALLDIR - Display Winamp install directory, as detected by CLAmp
INSTALLDIR=... - Force using this as install directory, overwriting result of default detection. Must be first option.
INIFILE - Display Winamp ini file
INIDIR - Display Winamp.ini directory


Winamp process

CLASS <class> - Force using this class name
Parameters are handled left to right, so the following provide different results :
CLAMP /CLASS MyClass /START /PLAY
CLAMP /START /CLASS MyClass /PLAY
First line means "Start Winamp with class MyClass (same as Winamp /class=MyClass) and play it"
Second line means "Start standard instance of winamp then search for MyClass instance and play this one"
Note: if all this means nothing to you, don't worry, you probably just don't need it !

PID - Show Winamp process ID


Misc.

CDPLAY - Play CD
JUMPTOFILE - Open the "Jump to file" dialog window


Examples

CLAMP /PLAY
CLAMP /PLCLEAR /PLADD "MySong1.mp3" /PLADD "MySong2.mp3" /PLAY






Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych