Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How to backup the front volume

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840

    How to backup the front volume

    I try to save the Volume Front value in a variable for use it after a command .

    So i have tried these commands :

    Code:
    B02,558,108,40,33,"SETVARBYCODE;VolFront;VOL:Front||mutefront"
    B03,622,108,40,33,"SETVOL;$VolFront$"
     
    and after
    
    B02,558,108,40,33,"SETVARBYCODE;VolFront;VOL:Front||mutefront"
    B03,622,108,40,33,"SETVOL;VolFront"
    My gool is if the volume is at 40% , i want to save 40 in a variable , change the volume if i want and after use a button who read the value=40 to set the value at the old value .

    Somebody can help me please ?

    Thanks

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    To save it you should use: "SETVARBYCODE;PREVOL;VOL:Front"
    To restore it you should use: "SETVOL;Front;$PREVOL$"

    (Assuming your volume control is called "Front" -- otherwise it won't work).

    For a "MASTER" volume, you should probably use:

    To save it you should use: "SETVARBYCODE;PREVOL;VOLUME"
    To restore it you should use: "SETVOL;MASTER;$PREVOL$"
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840

    Smile

    Quote Originally Posted by guino View Post
    To save it you should use: "SETVARBYCODE;PREVOL;VOL:Front"
    To restore it you should use: "SETVOL;Front;$PREVOL$"

    (Assuming your volume control is called "Front" -- otherwise it won't work).

    For a "MASTER" volume, you should probably use:

    To save it you should use: "SETVARBYCODE;PREVOL;VOLUME"
    To restore it you should use: "SETVOL;MASTER;$PREVOL$"
    Thanks Guino, I try that !! Houpi

  4. #4
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    I have tried to use the switcbutton command but i have some problem .

    on my .skin

    Code:
    B02,558,108,40,33,"FRONTOFF||SWITCHBUTTON;1>>FRONTON||SWITCHBUTTON;1"
    I22,558,108,40,33,"!mutefront:b"
    B03,622,108,40,33,"SETVARBYCODE;VolRear;VOL:Rear||muterear||SWITCHBUTTON;2>>SETVOL;Rear;$VolRear$||SETIND;!muterear;OFF||SWITCHBUTTON;2"
    I33,622,108,40,33,"!muterear:b"
    B05,683,108,40,33,"SETVARBYCODE;VolSub;VOL:Subwoofer||mutesub||SWITCHBUTTON;3>>SETVOL;Subwoofer;$VolSub$||SETIND;!mutesub;OFF||SWITCHBUTTON;3"
    I55,683,108,40,33,"!mutesub:b"
    B06,746,108,40,33,"SETVARBYCODE;VolCentre;VOL:Center||mutecentre||SWITCHBUTTON;4>>SETVOL;Center;$VolCentre$||SETIND;!mutecentre;OFF||SWITCHBUTTON;4"
    I66,746,108,40,33,"!mutecentre:b"
    and on my exectbl.ini

    Code:
    /**************************************mute 5.1******************************************
    "mutefront","SETVOL;Front;0||SETIND;!mutefront;ON"
    "muterear","SETVOL;Rear;0||SETIND;!muterear;ON"
    "mutesub","SETVOL;Subwoofer;0||SETIND;!mutesub;ON"
    "mutecentre","SETVOL;Center;0||SETIND;!mutecentre;ON"
    /**************************************************************************************
    Where is my error please.

  5. #5
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Ok , I understand my error .

    on my exectbl.ini
    Code:
    /**************************************mute 5.1******************************************
    "mutefront","SETVOL;Front;0||SETIND;!mutefront;ON"
    "muterear","SETVOL;Rear;0||SETIND;!muterear;ON"
    "mutesub","SETVOL;Subwoofer;0||SETIND;!mutesub;ON"
    "mutecentre","SETVOL;Center;0||SETIND;!mutecentre;ON"
    /**************************************************************************************
    on my .skin
    Code:
    B01,558,108,40,33,"SETVARBYCODE;VolFront;VOL:Front||mutefront||SWITCHBUTTON;1>>SETVOL;Front;$VolFront$||SETIND;!mutefront;OFF||SWITCHBUTTON;1",""
    I22,558,108,40,33,"!mutefront:b"
    B02,622,108,40,33,"SETVARBYCODE;VolRear;VOL:Rear||muterear||SWITCHBUTTON;2>>SETVOL;Rear;$VolRear$||SETIND;!muterear;OFF||SWITCHBUTTON;2",""
    I33,622,108,40,33,"!muterear:b"
    B03,683,108,40,33,"SETVARBYCODE;VolSub;VOL:Subwoofer||mutesub||SWITCHBUTTON;3>>SETVOL;Subwoofer;$VolSub$||SETIND;!mutesub;OFF||SWITCHBUTTON;3",""
    I55,683,108,40,33,"!mutesub:b"
    B04,746,108,40,33,"SETVARBYCODE;VolCentre;VOL:Center||mutecentre||SWITCHBUTTON;4>>SETVOL;Center;$VolCentre$||SETIND;!mutecentre;OFF||SWITCHBUTTON;4",""
    I66,746,108,40,33,"!mutecentre:b"
    But thes line run well if they are on .skin's top .

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Now, for another screen, i want to create 6 switch buttons with 6 indicator on/off and a backup in the skin.ini for the 6 status !

    I have my six button , i can save the button's status in the skin.ini file , but
    i should like that my screen read these six status .

    my screen code:
    Code:
    /, B, X, Y, W, H, COMMAND;COMMANDCODES, TOOLTIP
    B01,6,122,158,68,"SAVETOSKIN;poi1cmd1;ON||poi1cmd1ON||SETIND;!poi1cmd1;ON||SWITCHBUTTON;1>>SAVETOSKIN;poi1cmd1;OFF||SETVAR;poi1cmd1;$poi1cmd1$||poi1cmd1OFF||SETIND;!poi1cmd1;OFF||SWITCHBUTTON;1",""
    I01,5,190,158,24,"!poi1cmd1"
    B02,168,123,158,68,"SAVETOSKIN;poi2cmd2;ON||poi2cmd2ON||SETIND;!poi2cmd2;ON||SWITCHBUTTON;2>>SAVETOSKIN;poi2cmd2;OFF||SETVAR;poi1cmd1;$poi2cmd2$||poi2cmd2OFF||SETIND;!poi2cmd2;OFF||SWITCHBUTTON;2",""
    I02,167,191,158,22,"!poi2cmd2"
    B03,330,123,158,66,"SAVETOSKIN;poi3cmd3;ON||poi3cmd3ON||SETIND;!poi3cmd3;ON||SWITCHBUTTON;3>>SAVETOSKIN;poi3cmd3;OFF||SETVAR;poi3cmd3;$poi3cmd3$||poi3cmd3OFF||SETIND;!poi3cmd3;OFF||SWITCHBUTTON;3",""
    I03,330,191,158,22,"!poi3cmd3"
    B04,5,216,158,68,"SAVETOSKIN;poi4cmd4;ON||poi4cmd4ON||SETIND;!poi4cmd4;ON||SWITCHBUTTON;4>>SAVETOSKIN;poi4cmd4;OFF||SETVAR;poi4cmd4;$poi4cmd4$||poi4cmd4OFF||SETIND;!poi4cmd4;OFF||SWITCHBUTTON;4",""
    I04,6,285,158,22,"!poi4cmd4" 
    B05,168,218,158,68,"SAVETOSKIN;poi4cmd5;ON||poi5cmd5ON||SETIND;!poi5cmd5;ON||SWITCHBUTTON;5>>SAVETOSKIN;poi5cmd5;OFF||SETVAR;poi5cmd5;$poi5cmd5$||poi5cmd5OFF||SETIND;!poi5cmd5;OFF||SWITCHBUTTON;5",""
    I05,168,286,158,22,"!poi5cmd5" 
    B06,329,218,158,68,"SAVETOSKIN;poi6cmd6;ON||poi6cmd6ON||SETIND;!poi6cmd6;ON||SWITCHBUTTON;6>>SAVETOSKIN;poi6cmd6;OFF||SETVAR;poi6cmd6;$poi6cmd6$||poi6cmd6OFF||SETIND;!poi6cmd6;OFF||SWITCHBUTTOFF;6",""
    I06,330,286,158,22,"!poi6cmd6"
    in my skin.ini:
    Code:
    [Six Commands Setup]
    poi1cmd1=OFF
    poi2cmd2=OFF
    poi3cmd3=OFF
    poi4cmd4=ON
    poi6cmd5=ON
    poi4cmd6=OFF
    my exectbl.ini file:
    Code:
    "poi1cmd1ON","RRVolRamper_Dn;75;30||say;commande une activée||RRVolRamper_Up"
    "poi1cmd1OFF","RRVolRamper_Dn;75;30||say;commande une désactivée||RRVolRamper_Up"
    
    "poi2cmd2ON","RRVolRamper_Dn;75;30||say;commande deux activée||RRVolRamper_Up"
    "poi2cmd2OFF","RRVolRamper_Dn;75;30||say;commande deux désactivée||RRVolRamper_Up"
    
    "poi3cmd3ON","RRVolRamper_Dn;75;30||say;commande trois activée||RRVolRamper_Up"
    "poi3cmd3OFF","RRVolRamper_Dn;75;30||say;commande trois désactivée||RRVolRamper_Up"
    
    "poi4cmd4ON","RRVolRamper_Dn;75;30||say;commande quatre activée||RRVolRamper_Up"
    "poi4cmd4OFF","RRVolRamper_Dn;75;30||say;commande quatre désactivée||RRVolRamper_Up"
    
    "poi5cmd5ON","RRVolRamper_Dn;75;30||say;commande trois activée||RRVolRamper_Up"
    "poi5cmd5OFF","RRVolRamper_Dn;75;30||say;commande trois désactivée||RRVolRamper_Up"
    
    "poi6cmd6ON","RRVolRamper_Dn;75;30||say;commande quatre activée||RRVolRamper_Up"
    "poi6cmd6OFF","RRVolRamper_Dn;75;30||say;commande quatre désactivée||RRVolRamper_Up
    How can i must to do when RR run .

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    This isn't making much sense though...
    Code:
    "SAVETOSKIN;poi1cmd1;ON||poi1cmd1ON||SETIND;!poi1cmd1;ON||SWITCHBUTTON;1>>SAVETOSKIN;poi1cmd1;OFF||SETVAR;poi1cmd1;$poi1cmd1$||poi1cmd1OFF||SETIND;!poi1cmd1;OFF||SWITCHBUTTON;1"
    But you'll probably need to execute a few commands using ONSKINSTART to compare if the poiXcmd is on and re-run the command to set the indicator... something like (ALL UNTESTED):

    Code:
    "ONSKINSTATRT","<existingcommands>||EVAL;POION;strcomp("ON";"$POI1CMD1$")||BYVAR;POION;<<POI1CMD1ON||EVAL;POION;strcomp("ON";"$POI2CMD2$")||BYVAR;POION;<<POI2CMD2ON||EVAL;POION;strcomp("ON";"$POI3CMD3$")||BYVAR;POION;<<POI3CMD3ON||EVAL;POION;strcomp("ON";"$POI4CMD4$")||BYVAR;POION;<<POI4CMD4ON||EVAL;POION;strcomp("ON";"$POI5CMD5$")||BYVAR;POION;<<POI5CMD5ON||EVAL;POION;strcomp("ON";"$POI6CMD6$")||BYVAR;POION;<<POI6CMD6ON||<morecommands>"
    I'd go with something like this for the buttons:
    Code:
    "BYVAR;POI1CMD1;poi1cmd1ON<<poi1cmd1OFF"
    "BYVAR;POI2CMD2;poi2cmd2ON<<poi2cmd2OFF"
    "BYVAR;POI3CMD3;poi3cmd3ON<<poi3cmd3OFF"
    "BYVAR;POI4CMD4;poi4cmd4ON<<poi4cmd4OFF"
    "BYVAR;POI5CMD5;poi5cmd5ON<<poi5cmd5OFF"
    "BYVAR;POI6CMD6;poi6cmd6ON<<poi6cmd6OFF"
    and Exectbl:
    Code:
    "poi1cmd1ON","SAVETOSKIN;poi1cmd1;ON||SETVAR;poi1cmd1;ON||SETIND;!poi1cmd1;ON||ACTIVATEDCMD"
    "poi1cmd1OFF","SAVETOSKIN;poi1cmd1;OFF||SETVAR;poi1cmd1;OFF||SETIND;!poi1cmd1;OFF||DEACTIVATEDCMD"
    "poi2cmd1ON","SAVETOSKIN;poi2cmd2;ON||SETVAR;poi2cmd2;ON||SETIND;!poi2cmd2;ON||ACTIVATEDCMD"
    "poi2cmd1OFF","SAVETOSKIN;poi2cmd2;OFF||SETVAR;poi2cmd2;OFF||SETIND;!poi2cmd2;OFF||DEACTIVATEDCMD"
    "poi3cmd1ON","SAVETOSKIN;poi3cmd3;ON||SETVAR;poi3cmd3;ON||SETIND;!poi3cmd3;ON||ACTIVATEDCMD"
    "poi3cmd1OFF","SAVETOSKIN;poi3cmd3;OFF||SETVAR;poi3cmd3;OFF||SETIND;!poi3cmd3;OFF||DEACTIVATEDCMD"
    "poi4cmd1ON","SAVETOSKIN;poi4cmd4;ON||SETVAR;poi4cmd4;ON||SETIND;!poi4cmd4;ON||ACTIVATEDCMD"
    "poi4cmd1OFF","SAVETOSKIN;poi4cmd4;OFF||SETVAR;poi4cmd4;OFF||SETIND;!poi4cmd4;OFF||DEACTIVATEDCMD"
    "poi5cmd1ON","SAVETOSKIN;poi5cmd5;ON||SETVAR;poi5cmd5;ON||SETIND;!poi5cmd5;ON||ACTIVATEDCMD"
    "poi5cmd1OFF","SAVETOSKIN;poi5cmd5;OFF||SETVAR;poi5cmd5;OFF||SETIND;!poi5cmd5;OFF||DEACTIVATEDCMD"
    "poi6cmd1ON","SAVETOSKIN;poi6cmd6;ON||SETVAR;poi6cmd6;ON||SETIND;!poi6cmd6;ON||ACTIVATEDCMD"
    "poi6cmd1OFF","SAVETOSKIN;poi6cmd6;OFF||SETVAR;poi6cmd6;OFF||SETIND;!poi6cmd6;OFF||DEACTIVATEDCMD"
    
    "ACTIVATEDCMD","RRVolRamper_Dn;75;30||say;commande une activée||RRVolRamper_Up"
    "DEACTIVATEDCMD","RRVolRamper_Dn;75;30||say;commande une désactivée||RRVolRamper_Up"
    While everything above is untested, you should get the idea -- I don't see the need to call anything poiXcmdX though -- should be just poicmdX (just makes it harder to copy/paste).
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  8. #8
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Just to make the code cleaner(easier to read thru), you could also use one of the RRExt cmds 'BYSTR" It combines the EVAL & BYVAR into one simple cmd.

    THis...

    PHP Code:

    "ONSKINSTATRT","<existingcommands>||EVAL;POION;strcomp("ON";"$POI1CMD1$")||BYVAR;POION;<<POI1CMD1ON||EVAL;POION;strcomp("ON";"$POI2CMD2$")||BYVAR;POION;<<POI2CMD2ON||EVAL;POION;strcomp("ON";"$POI3CMD3$")||BYVAR;POION;<<POI3CMD3ON||EVAL;POION;strcomp("ON";"$POI4CMD4$")||BYVAR;POION;<<POI4CMD4ON||EVAL;POION;strcomp("ON";"$POI5CMD5$")||BYVAR;POION;<<POI5CMD5ON||EVAL;POION;strcomp("ON";"$POI6CMD6$")||BYVAR;POION;<<POI6CMD6ON||<morecommands>" 
    TO...

    PHP Code:

    "ONSKINSTATRT","<existingcommands>||BYSTR;$POI1CMD1$;ON<POI1CMD1ON>||BYSTR;$POI2CMD2$;ON<POI1CMD1ON>||BYSTR;$POI3CMD3$;ON<POI1CMD1ON>||BYSTR;$POI3CMD3$;ON<POI1CMD1ON>||BYSTR;$POI4CMD4$;ON<POI1CMD1ON>||BYSTR;$POI5CMD5$;ON<POI1CMD1ON>||BYSTR;$POI6CMD6$;ON<POI1CMD1ON>||<morecommands> 
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  9. #9
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Thanks Guino, thanks Blue, i try these lines asap , ans say you if that id do what i want .

  10. #10
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Hello,
    I have tested your lines
    on my skin:
    Code:
    /, B, X, Y, W, H, COMMAND;COMMANDCODES, TOOLTIP
    B01,6,122,158,68,"BYVAR;POI1CMD1;poi1cmd1ON<<poi1cmd1OFF"
    I01,5,190,158,24,"!poi1cmd1"
    B02,168,123,158,68,"BYVAR;POI2CMD2;poi2cmd2ON<<poi2cmd2OFF"
    I02,167,191,158,22,"!poi2cmd2"
    B03,330,123,158,66,"BYVAR;POI3CMD3;poi3cmd3ON<<poi3cmd3OFF"
    I03,330,191,158,22,"!poi3cmd3"
    B04,5,216,158,68,"BYVAR;POI4CMD4;poi4cmd4ON<<poi4cmd4OFF"
    I05,6,285,158,22,"!poi4cmd4" 
    B05,168,218,158,68,"BYVAR;POI5CMD5;poi5cmd5ON<<poi5cmd5OFF"
    I06,168,286,158,22,"!poi5cmd5" 
    B06,329,218,158,68,"BYVAR;POI6CMD6;poi6cmd6ON<<poi6cmd6OFF"
    I04,330,286,158,22,"!poi6cmd6"
    on my exectbl.ini file:
    Code:
    /**************************************Twelve commands******************************************
    "MYCOMMANDS","BYSTR;$poi1cmd1$;ON<poi1cmd1ON>||BYSTR;$POI2CMD2$;ON<POI1CMD1ON>||BYSTR;$POI3CMD3$;ON<POI1CMD1ON>||BYSTR;$POI3CMD3$;ON<POI1CMD1ON>||BYSTR;$POI4CMD4$;ON<POI1CMD1ON>||BYSTR;$POI5CMD5$;ON<POI1CMD1ON>||BYSTR;$POI6CMD6$;ON<POI1CMD1ON>"
    "poi1cmd1ON","SAVETOSKIN;poi1cmd1;ON||SETVAR;poi1cmd1;ON||SETIND;!poi1cmd1;ON||ACTIVATEDCMD"
    "poi1cmd1OFF","SAVETOSKIN;poi1cmd1;OFF||SETVAR;poi1cmd1;OFF||SETIND;!poi1cmd1;OFF||DEACTIVATEDCMD"
    "poi2cmd1ON","SAVETOSKIN;poi2cmd2;ON||SETVAR;poi2cmd2;ON||SETIND;!poi2cmd2;ON||ACTIVATEDCMD"
    "poi2cmd1OFF","SAVETOSKIN;poi2cmd2;OFF||SETVAR;poi2cmd2;OFF||SETIND;!poi2cmd2;OFF||DEACTIVATEDCMD"
    "poi3cmd1ON","SAVETOSKIN;poi3cmd3;ON||SETVAR;poi3cmd3;ON||SETIND;!poi3cmd3;ON||ACTIVATEDCMD"
    "poi3cmd1OFF","SAVETOSKIN;poi3cmd3;OFF||SETVAR;poi3cmd3;OFF||SETIND;!poi3cmd3;OFF||DEACTIVATEDCMD"
    "poi4cmd1ON","SAVETOSKIN;poi4cmd4;ON||SETVAR;poi4cmd4;ON||SETIND;!poi4cmd4;ON||ACTIVATEDCMD"
    "poi4cmd1OFF","SAVETOSKIN;poi4cmd4;OFF||SETVAR;poi4cmd4;OFF||SETIND;!poi4cmd4;OFF||DEACTIVATEDCMD"
    "poi5cmd1ON","SAVETOSKIN;poi5cmd5;ON||SETVAR;poi5cmd5;ON||SETIND;!poi5cmd5;ON||ACTIVATEDCMD"
    "poi5cmd1OFF","SAVETOSKIN;poi5cmd5;OFF||SETVAR;poi5cmd5;OFF||SETIND;!poi5cmd5;OFF||DEACTIVATEDCMD"
    "poi6cmd1ON","SAVETOSKIN;poi6cmd6;ON||SETVAR;poi6cmd6;ON||SETIND;!poi6cmd6;ON||ACTIVATEDCMD"
    "poi6cmd1OFF","SAVETOSKIN;poi6cmd6;OFF||SETVAR;poi6cmd6;OFF||SETIND;!poi6cmd6;OFF||DEACTIVATEDCMD"
    
    "ACTIVATEDCMD","RRVolRamper_Dn;75;30||say;commande activée||RRVolRamper_Up"
    "DEACTIVATEDCMD","RRVolRamper_Dn;75;30||say;commande désactivée||RRVolRamper_Up"
    /**************************************************************************************
    and i add MYCOMMANDS to my existing ONSKINSTART line .

    When i run RR, automatically poi1cmd1 is set to ON even if poi1cmd1=OFF before that RR run .


    That i should like is the possibility to set on or off the six commands and when rr run it see the six status and stay with these status .

Page 1 of 3 123 LastLast

Similar Threads

  1. Hardware Review: JL Audio CL-RLC volume controlled preamp
    By soundman98 in forum The Review Palace
    Replies: 46
    Last Post: 06-12-2011, 08:30 PM
  2. Volume / Definition Issues
    By bratnetwork in forum Car Audio
    Replies: 6
    Last Post: 10-22-2009, 06:58 PM
  3. RR volume mapping
    By kaerf in forum RR Bug Tracker
    Replies: 4
    Last Post: 08-13-2009, 03:56 AM
  4. volume issues
    By warnockm in forum Road Runner
    Replies: 6
    Last Post: 08-09-2008, 11:04 PM
  5. VIA smart 5.1 super LOW front volume
    By tibby01 in forum Car Audio
    Replies: 3
    Last Post: 10-17-2006, 12:40 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
  •