Results 1 to 7 of 7

Thread: 2 Problems: Creating cycle button and replacing slider with button

  1. #1
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520

    2 Problems: Creating cycle button and replacing slider with button

    1. question:
    I'm working on the mixer of a skin. I want to include a button to cycle through the mixer presets. I have a problem though. When I create a button like this:

    B11,720,170,060,060,"BYVAR;V_SOUND;SETVAR;V_SOUND; 1<<SETVAR;V_SOUND;2<<SETVAR;V_SOUND;3<<SETVAR;V_SO UND;0",""

    It works as it should. Every single press changes the variable v_sound. So if I press the button it sets the variable to 1, on the next press to 2, then to 3 and then 0.

    Then I want to add, that the button doesn't just change the value of the variable, but also loads a different preset on each press. So I changed the button to this:
    B11,720,170,060,060,"BYVAR;V_SOUND;SETVAR;V_SOUND; 1||PRESET;POP;WINAMP<<SETVAR;V_SOUND;2||PRESET;ROC K;WINAMP<<SETVAR;V_SOUND;3||PRESET;TECHNO;WINAMP<< SETVAR;V_SOUND;0||PRESET;FLAT",""

    But when I now press the button it cycles completely through. So with one button press it executes all commands. (First it sets the variable to 1, loads equalizer setting, sets var to 2, loads equalizer setting, sets var to 3, loads equalizer setting, sets var to 0, loads equalizer setting. All with a single press).


    2nd question:
    I want to replace the bass slider in the mixer with a bass button. Again, I want to create a cycle button to switch between three values for this slider. Is there a command to directly assign a value to a winamp slider, something like "WAVE;255", or as in my case "BASS;50" ?


    I hope I'm not getting on your nerves asking so many questions . Hopefully you guys can help me again .

  2. #2
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    try something like this for the button

    Code:
    B11,720,170,060,060,"BYVAR;V_SOUND;PRESET;POP;WINAMP<<PRESET;ROCK;WINAMP<<PRESET;TECHNO;WINAMP<<PRESET;FLAT||BYVAR;V_SOUND;SETVAR;V_SOUND;1<<SETVAR;V_SOUND;2<<SETVAR;V_SOUND;3<<SETVAR;V_SOUND;0",""
    2001 S10 ZR2

    Chucks Skin - to old

  3. #3
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    Great, that works. Didn't think of that, thanks Chuck .

    Question 2 still open though...

  4. #4
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    No one ? Not even Guino ?

  5. #5
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    maybe this will help

    Special Names also available for VOL+/VOL-: Balance, Bass, Treble, Winamp, Preamp, FreqX (1-10)
    Examples: "VOL+;Winamp" or "VOL+;FREQ5"
    2001 S10 ZR2

    Chucks Skin - to old

  6. #6
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    VOL+ and VOL- command work with "BASS", but not SETVOL or SETVOLUME which I would like to use (for setting fixed values).

  7. #7
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    TTT (Hope you don't mind).

    Still would like to know if I can change the BASS and TREBLE value with SETVOL/SETVOLUME .

Similar Threads

  1. replacing RADIO button with another Application ??
    By Don 944 LA in forum Centrafuse
    Replies: 11
    Last Post: 02-04-2005, 05:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •