How to use HLDJ's Custom Aliases
Posted: Mon Sep 08, 2008 11:03 pm
Borrowed from the 1.3.6 changelog:
One of the major new features in this version are user-defined custom aliases.
These aliases are activated when certain HLDJ commands are run
and can be re-defined by users to perform any custom command(s) they wish.
Below is a table showing the HLDJ commands which trigger corresponding user-defined aliases:
HLDJ command(s) .......... custom user-defined alias
-------------------------------------------------------------------
hldj_select_file, hldjsf ........ hldj_custom_selectfile
hldj_select_dir, hldjsd ....... hldj_custom_selectdir
listaudio, la ....................... hldj_custom_listaudio
playaudio (on) .................. hldj_custom_playaudio_on
playaudio (off) .................. hldj_custom_playaudio_off
Each user-defined alias on the right will be executed after its the corresponding HLDJ command (left).
For example, the alias "hldj_custom_selectfile" will be triggered whenever
"hldj_select_file" or "hldjsf" is called (such as when selecting a file, searching, next/prev).
This allows you to re-define any one of the custom alias using your own set of commands.
The best place to re-define a custom alias is in your "hldj_custom.cfg" file.
For example, if you wanted to display the song title in chat everytime you play a song,
you could place the following line in your "hldj_custom.cfg":
This will re-define the "hldj_custom_playaudio_on" alias to include the "hldjsca" command.
Now whenever you begin to play your audio, it will execute the above alias
(which now includes "hldjsca") and will display the current song title in public chat.
As mentioned previously, any one of the hldj_custom_* aliases can be
re-defined using your own commands as in the above example.
One of the major new features in this version are user-defined custom aliases.
These aliases are activated when certain HLDJ commands are run
and can be re-defined by users to perform any custom command(s) they wish.
Below is a table showing the HLDJ commands which trigger corresponding user-defined aliases:
HLDJ command(s) .......... custom user-defined alias
-------------------------------------------------------------------
hldj_select_file, hldjsf ........ hldj_custom_selectfile
hldj_select_dir, hldjsd ....... hldj_custom_selectdir
listaudio, la ....................... hldj_custom_listaudio
playaudio (on) .................. hldj_custom_playaudio_on
playaudio (off) .................. hldj_custom_playaudio_off
Each user-defined alias on the right will be executed after its the corresponding HLDJ command (left).
For example, the alias "hldj_custom_selectfile" will be triggered whenever
"hldj_select_file" or "hldjsf" is called (such as when selecting a file, searching, next/prev).
This allows you to re-define any one of the custom alias using your own set of commands.
The best place to re-define a custom alias is in your "hldj_custom.cfg" file.
For example, if you wanted to display the song title in chat everytime you play a song,
you could place the following line in your "hldj_custom.cfg":
Code: Select all
alias hldj_custom_playaudio_on "hldjsca"
Now whenever you begin to play your audio, it will execute the above alias
(which now includes "hldjsca") and will display the current song title in public chat.
As mentioned previously, any one of the hldj_custom_* aliases can be
re-defined using your own commands as in the above example.