Project

General

Profile

Actions

$left » History » Revision 3

« Previous | Revision 3/7 (diff) | Next »
Per Amundsen, 08/11/2015 09:44 AM


Added in 1.8.10

$left

Returns duration left of the currently playing song in XX:XX format.

Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed.

Added in 1.9.0

$left(text,N)

Returns the N left characters of text.

If N is a negative value, starts from the end.

Parameters

text - Text to substring.
N - The Nth characters to substring by.

Example

; Get the left 5 characters from 'Hello World'.
//echo -ag $left(Hello World,5)

; Get the last 5 characters from 'Hello World'.
//echo -ag $left(Hello World, -5)

Updated by Per Amundsen over 8 years ago · 3 revisions

Also available in: PDF HTML TXT