Little help with next/previous.

Help with using HLDJ
Post Reply
zomgheals
Game DJ
Posts: 5
Joined: Sat Jul 05, 2008 7:56 am

Little help with next/previous.

Post by zomgheals »

This is probably so simple im blind as i cant see any posts / etc. about this subject.

I've just got into HLDJ TODAY and ive started to bind stuff etc.

one bind is "bind RIGHTARROW hldjn" - Meaning my right arrow should be doing next song. What it is doing though is making it queue up to be the next song. I have to actually press 'f1' to stop and start to play it. Is there anyway for me to be able to press right arrow and it auto goes to next song? TY!
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Little help with next/previous.

Post by Renegade »

Code: Select all

bind RIGHTARROW "hldjn; hs; playaudio"
hldjn = next
hs = halfsec (gives the song about half a second to load up)
playaudio = plays the audio
; = allows you to separate multiple commands on one line
zomgheals
Game DJ
Posts: 5
Joined: Sat Jul 05, 2008 7:56 am

Re: Little help with next/previous.

Post by zomgheals »

doesnt seem to work :\

it just pauses the music (well stops). when i press again it skips to song 3

**FIXED: just added another ; hs; playaudio
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Little help with next/previous.

Post by Renegade »

the above was assuming the music was already stopped while switching. If you want a command to stop the music first, switch, then start it again:

Code: Select all

bind <key> "hldjn; hs; playaudio_off; playaudio_on"
Post Reply