%PROCSTATUS(processName) - returns ON if process is running, OFF else
example: %PROCSTATUS("opera.exe") will return ON if Opera is running
%KILLPROC(processName) - kills the process
example: %KILLPROC("opera.exe")
%FILESIZE(filename,format) - returns size of specified file, format is one of the following:
M - size in MegaBytes
K - size in KiloBytes
B - size in Bytes
example: %FILESIZE("c:\windows\explorer.exe","k") will return 977
%OWNIP - returns your ip address if u're online, OFFLINE else
%COPYFILE(source,destination,option) - Copies file source to destination , option specifies how this operation is to proceed if a file of the same name as that specified by destination already exists. If this parameter is 1 and the new file already exists, the macro fails. If this parameter is 0 and the new file already exists, the macro overwrites the existing file and succeeds.
- returns ON(OFF) if corresponding "lock" is on(off)
%GETINIVALUE(filename,section,key) - retrieves specified key value from .ini file
example: %GETINIVALUE("c:\boot.ini","boot loader","timeout") will return the timeout key value from boot.ini file's [boot loader] section , e.g. 10
%SETINIVALUE(filename,section,key,value) - set specified key value in .ini file to specified value
example: %SETINIVALUE("c:\boot.ini","boot loader","timeout","30") will set the timeout key value in boot.ini file's [boot loader] section to 30
these 2 macros can be used to store %_variables in ini file and retrieve them later
%FIGLET(text,font_name) - returns text using specified figlet(Frank, Ian & Glenn's Letters) font. font_name - is the name of corresponding flf-file from "fonts" folder.
example: %FIGLET("hello","smslant") will return the word "hello" using "smslant" font:
18 figlet fonts are included, additional fonts can be installed by copying them to "fonts" folder.
More fonts(over 400) can be downloaded from
ftp://ftp.figlet.org/pub/figlet/fonts/
startofl - go to first track in playlist(winamp only)
endofl - go to last track in playlist (winamp only)
example: %WINAMP_CMD("pause")
%SONIQUE("parameter") - returns corresponding information about sonique player.
parameter can be one of the following
path - path of current playing file
artist - current playing song's artist name
song - current playing song's name
length - current playing song's length is m:ss format
length_sec - current playing song's length is seconds
position - current playing song's position is m:ss format
position_sec - current playing song's posistion is seconds
example: %SONIQUE("path") will return: D:\music\Einsturzende Neubauten\silence.mp3
%XMPLAY("parameter") - returns corresponding information from XMPlay player.
parameter can be one of the following
artist - current selected song's artist name
title - current selected song's title
if parameter isn't specified macro will return detailed information about selected song
example: %XMPLAY("title") , %XMPLAY
%MMJB_TITLE - returns current playing song's title from MUSICMATCH Jukebox player.
returns OFF is player is not running, or STOPPED if player is running but not playing a song.
example: %MMBJ_TITLE
%SETCLIPBOARDTEXT("text") - places the text on clipboard
%BEEP(frequency,duration) - generates simple tones on the system speaker(has nothing to to with soundcard).
frequency specifies the frequency, in hertz, of the sound. This parameter must be in the range 37 through 32767. duration specifies the duration, in milliseconds, of the sound.
note:duration and frequency parameters are used only in windows 2k/xp.
Windows 9x:
On computers with a sound card, the function plays the default sound event. On computers without a sound card, the function plays the standard system beep.
%SKIPLINE(text,regular_expression) - removes lines containing regular_expression from text
example: %SKIPLINE(%QUOTES,">>|wrote:") - will insert quoted text without lines that contain double quotation or "wrote:"
%TEXTBEFORE(text,regular_expression,[include]) - returns all lines from text before the line containing regular_expression.
optional parameter include specifies if line containing regular_expression will be included.If macro is called with 2 parameters it's not included.
%TEXTAFTER(text,regular_expression,[include]) - returns all lines from text after the line containing regular_expression.
optional parameter include specifies if line containing regular_expression will be included.If macro is called with 2 parameters it's not included.