Setting up shortcuts to audio

Help with using HLDJ
Post Reply
x1NeMeSiS1x
Game DJ
Posts: 2
Joined: Tue Sep 16, 2008 7:16 pm

Setting up shortcuts to audio

Post by x1NeMeSiS1x »

I was wondering if there is a way to set shortcuts for various songs and audio files. If there is, how do you do it?
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Setting up shortcuts to audio

Post by Renegade »

In-game help #3 (type 'hldj3') goes over it best, briefly, you'll want a bind that looks something like this (as an example):

Code: Select all

bind q "bind = >$\myaudiofile; hldjsf"
The exact syntax is:

Code: Select all

bind [key] "bind [command relay key] >$\[path to file or folder]; [hldjsf OR hldjsd]
[key] is the shortcut key you want bound
[command relay key] is the key used internally by HLDJ to pass commands ("=" key by default)
'>' tells HLDJ that the file specified must match exactly (no searching performed)
'$' substitutes the path of your audio directory.
[path to file or folder] the path to your file or folder (since we used '$', it will be relative from your audio directory). The file extension is optional. If selecting a folder, add a '\' to the end of the path. Note: all spaces in the path must be replaced by the '*' character (HL doesn't handle spaces in binds very well).
<hldjsf> tells HLDJ the item to be selected is a file
<hldjsd> tells HLDJ the item to be selected is a directory

Some more examples, covering most of the tips above:

Code: Select all

bind a "bind = >$\voices\funny*voice; hldjsf"
bind b "bind = >$\techno\rave.wav; hldjsf"
bind c "bind = >$\family*guy\peter; hldjsf"
bind d "bind = >$\voices\; hldjsd"
The first three show different ways of selecting various audio files. The last is an example of switching the current audio directory.
x1NeMeSiS1x
Game DJ
Posts: 2
Joined: Tue Sep 16, 2008 7:16 pm

Re: Setting up shortcuts to audio

Post by x1NeMeSiS1x »

Thanks, that really helps a lot and it all seems so simple now that I think about it :lol:
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Setting up shortcuts to audio

Post by Renegade »

Any time, glad you understood it all!
Post Reply