Where did you get that version?
CMD = "SETVAR;rrgas;" & CStr(rrgas)
If you are setting a ReturnCode = 2 in your case staments, all is good, but do not set the ReturnCode = 2 in the section where you are setting the above command. Blue says.... welll..... ummm I am sure he can explain it better, please read below:
First off as seeing that your a noob to ext plugins, I'm not sure how exactly you doing the trying to update the progress slider.
All sounds very messy.
However I'll wait with baited breath.
By having a variable called pslider which is updated at various times during the prices update procedure.
This value is then passed back to RR when requested in the
(hmmm let me see, where would I do this?. . . . . . . . . . . . Oh yeah)
ReturnSlider section of the extension.cls
Actually the slider section seems to be whats not working. By just updating the pslider variable above, right where you are updating it will work perfectly. Nothing is then needed in the extension return slider or set slider section. It's not really messy at all, you are just setting the RR interface variable directly from the pslider variable in the extension.
I put a single line in my extension, and the slider now works in any version of RR.
so right where you are:
"having a variable called pslider which is updated at various times during the prices update procedure."
Just add this line in that section, below where you are updating the pslider var:
CMD = "SETVAR;rrgas;" & CStr(pslider)
That will set the rrgas variable in RR with your extension var of pslider.
It is a work around, yes, but not really a mess one at all, just a different way of doing it. Actually it is just more of a direct way of doing it by setting the variable directly, instead of relying on the need for the other slider sections in the extension. Right now, who knows how long it will be till the slider gets corrected in the official source, and that would still not let people use the 11/07, 02/08, Mitch's build, or the 05/08 versions ect...
And yes it is messy.
It adds extra code to my program
it adds extra processes to the commnad queue of RR
and it means bypassing the way that the extension plugin was (is supposed) designed to work. (I mean we could bypass all the commands of the extension plugin interface by doing other ways and then what is the point of the extension plugin)
Can't see what adding CMD = "SETVAR;rrgas;" & CStr(pslider) to my code will do.
adding SDK.Execute (CMD) afterwards might help though.
The plugin I was working on, was for home automation purposes I threw together a small video for the Home Automation guys to show just how well RR can work as a front end for home automation. You can see the slider in action controlling a lamp in the video.
Hang on, where are you saying to stick this code?
because just sticking CMD = "SETVAR;rrgas;" & CStr(pslider) where the pslider code gets changed will do nothing.
Sticking it in the slider part of the plugin code, will also do nothing.