So I suspect there is something wrong with the extension slider interface in the 'latest' beta.

Will now try mitchjs one (no I won't because it doesn't seem to want to run. Oh well )

Talking with BlueZX3, he gave me the command to set the slider variable directly, bypassing the broken Extension slider code completely

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:

Talking with BlueZX3, he gave me the command to set the slider variable directly, bypassing the broken Extension slider code completely

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:

All sounds very messy.

Originally Posted by Blue ZX3

Reserved...

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.

However I'll wait with baited breath.

*edit.

By having a variable called pslider which is updated at various times during the prices update procedure.

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...

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.

Yeah, I got that, infact I am going to run with both options but with different slider names.

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)

Originally Posted by JohnWPB

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...

That will work to directly execute it, but if you do not use the ReturnCode = 2, RR will just continue on, and when reaching the end of the plugin, will carry out the command, as the ReturnCode tells RR that ahhhh we are done here, no need to fire anything else.

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.