Announcement

Collapse
No announcement yet.

Sliders with multiple Extension plugins

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sliders with multiple Extension plugins

    Guino,

    When using multiple extensions plugins and using a custom Slider the slider does not work when is sits in the first extension plugin that was loaded.

    Bug is in function UpdateSliders

    Fixed it like this:

    'Check extension plugin for Slider value
    For t = 1 To UBound(Ext)
    If (Ext(t).ReturnSlider(SLDCODE) > 0) Then Value = Ext(t).ReturnSlider(SLDCODE)
    Next t

    Added red part
    So the Value will only be set is there is a value found > 0. Value was getting reset by the second plugin which does not have the same slider.
    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  • #2
    I'll add the prevention, Thanks man.
    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."

    Comment


    • #3
      Did you already add it. I downloaded the latest beta and I noticed my sliders stopped working again.
      My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
      Hardware: None at the moment
      Software: None at the moment
      See: Velleman K8055 Plugin for Road Runner

      Progress: [XXXXXXXXXX] 0 % DONE

      Comment


      • #4
        This is what the new code is right now. Idealistically ReturnSlider should return -1 for sliders not processed in the plugin, but I'm afraid I may have to remove the = 0 from there for the plugins that are old

        Code:
                    'Check extension plugin for Slider value
                    For t = 1 To UBound(Ext)
                        'TotalSecs is just a holder so we only ask the plugin once
                        TotalSecs = Ext(t).ReturnSlider(SLDCODE)
                        'If we received an acceptable value, then we use it
                        If TotalSecs >= 0 Then Value = TotalSecs
                    Next t
        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."

        Comment

        Working...
        X