Hey Blue,
This works great. You must enjoy challenges. My only problem is that on my system, the volume always comes back at 50% whether in the ON or OFF state on exit. First button press it does correct itself to the next correct state. Any ideas.
Ok, here is my much more organized version that has been fully tested and works!
Add "WinPresetLoad" to the skins "ONSKINSTART" cmd
Change your button cmd to:
Change your label to:Code:B5,500,526,100,74,"WinPresetToggle"
Put in either RR's or skin's 'Exectbl.ini' fileCode:L6,516,527,71,50,#DFX1R#,#DFX1G#,#DFX1B#,20,"Nissan:B","=$WinVolLabel$","CENTER"
Add or set in 'rr.ini' ( the mute's and unit's i was unsure of so you can fill those in )Code:/-- Main Cmds "WinPresetToggle","BYVAR;WinPresetLoaded;WinDnVolPreset<<WinUpVolPreset" "WinPresetLoad","SETVAR;speedattmode;line||SAVETOINI;speedattmode;line||SETVAR;speedattmaxstep;15||SAVETOINI;speedattmaxstep;15||SETVAR;speedattspeeda;0||BYVAR;WinPresetLoaded;WinUpVolPreset<<WinDnVolPreset" / Preset#0 "WinUpVolPreset","SETVAR;WinPresetLoaded;0||SAVETOINI;WinPresetLoaded;0||SETVAR;WinVolLabel;OFF||SAVETOINI;WinVolLabel;OFF||SETIND;!WINDOW;OFF||SETVAR;speedatt;$p1speedatt$||SETVAR;speedattmute;$p1speedattmute$||SETVAR;speedattunit;$p1speedattunit$||SETVAR;speedattvola;$p1speedattvola$||SETVAR;speedattvolb;$p1speedattvolb$||SETVAR;speedattspeedb;$p1speedattspeedb$" / Preset#1 "WinDnVolPreset","SETVAR;WinPresetLoaded;1||SAVETOINI;WinPresetLoaded;1||SETVAR;WinVolLabel;ON||SAVETOINI;WinVolLabel;ON||SETIND;!WINDOW;ON||SETVAR;speedatt;$p2speedatt$||SETVAR;speedattmute;$p2speedattmute$||SETVAR;speedattunit;$p2speedattunit$||SETVAR;speedattvola;$p2speedattvola$||SETVAR;speedattvolb;$p2speedattvolb$||SETVAR;speedattspeedb;$p2speedattspeedb$"
Code:/-- Saved State WinPresetLoaded=0 /-- Button Txt WinVolLabel=OFF /-- preset#1 p1speedatt=True p1speedattmute= p1speedattunit= p1speedattvola=65 p1speedattvolb=100 p1speedattspeeda=0 p1speedattspeedb=80 /-- preset#2 p2speedatt=True p2speedattmute= p2speedattunit= p2speedattvola=40 p2speedattvolb=100 p2speedattspeeda=0 p2speedattspeedb=50
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."
Hey Blue,
This works great. You must enjoy challenges. My only problem is that on my system, the volume always comes back at 50% whether in the ON or OFF state on exit. First button press it does correct itself to the next correct state. Any ideas.
CAR: 2007 G35 Sport Coupe 5AT
HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.
Seeing that every value is written to rr.ini, and when RR loads any values in a skin.ini will overider the rr.ini ones. Recheck your skin ini for any of those values, and delete them if found. This is really the only thing that could be causing this odd effect.
My Testing was on my DT w/o any gps, so as soon as i start up RR, its already set the vol to the correctly loaded preset, and pressing the btn, the vol raises/lowers to proper levels.
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."
That is kind of what I thought. I will go through the ini files carefully.
By the way. Much thanks are in order for helping with this. I know you program a lot of things from scratch, where I am more of a copy and paste type, but I go over the methods to learn as much as I can.
So Thanks for the help.
Edit: So the solution seems to be that all of this button stuff overrides the built in GPS Speed Attenuation, so i went into the RRConfig and disabled it. That was where the 50% was coming from. RR now opens with the correct last set volume.
Edit 2: Okay so this was boneheaded. The above edit about the built in GPS Speed was incorrect. What the solution was, is that I did not follow directions, and forgot to add the ONSKINSTART command "WinPresetLoad"
Okay next question. The double bar "||" I know is used to seperate code items in RR. The font I want to use on this button uses a single bar. However that puts three bars next to each other in the code. Is there a way to seperate the single bar I actually want to use for the font "|" from the double bar "||" code seperation.
CAR: 2007 G35 Sport Coupe 5AT
HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.
Post your example
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."
From your code above, instead of saying ON or OFF it would be | or \ in the appropriate places.
The font I want to use has the symbols on those keys, and I didnt want to create a custom font.
SETVAR;WinVolLabel;"|"||SAVETOINI;WinVolLabel;"|"| |SETIND;!WINDOW;ON||
SETVAR;WinVolLabel;"\"||SAVETOINI;WinVolLabel;"\"| |SETIND;!WINDOW;OFF||
With the single bar or slash in quotes. I had this almost working for a minute last night, but now dont remember which one of the parts needed the bar or slash either.
Edit: Never mind. I figured it out. I just put any key between the bar and double bar and then made my text box only big enough for the text I wanted displayed. And yes the quotes are only there to show the key stroke, not actually in the code.
CAR: 2007 G35 Sport Coupe 5AT
HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.
Okay, I have been using this successfully for 2 years since the last post on the thread. It is now time to upgrade to Windows 7, and although I have changed nothing in the coding, it is not working.
Any guidance. I am looking myself, but am probably missing something. The GPS volume settings included in DFX 5.2 are changing the volume, but my custom button settings are not changing the volume at all.
Thanks.
EDIT: Never mind. I commented out the GPS volume settings included in DFX and my settings now work.
Last edited by drewbp; 07-24-2012 at 12:33 PM.
CAR: 2007 G35 Sport Coupe 5AT
HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.
Bookmarks