Results 1 to 4 of 4

Thread: Sliders with multiple Extension plugins

  1. #1
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    235

    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. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  3. #3
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    235
    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

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

Similar Threads

  1. Replies: 9
    Last Post: 12-21-2006, 09:18 PM
  2. Wanted: Ultimate VGA extension cable.
    By Jzor in forum LCD/Display
    Replies: 2
    Last Post: 02-24-2006, 02:38 PM
  3. Embed several plugins, time delay
    By Flappy in forum Road Runner
    Replies: 3
    Last Post: 01-02-2006, 03:22 PM
  4. Multiple Monitors and Multiple inputs
    By nixneon in forum Newbie
    Replies: 1
    Last Post: 03-19-2005, 07:30 PM
  5. Replies: 3
    Last Post: 09-03-2004, 07:07 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
  •