Code: Select all
osdaddat(OSDVALUE, 100, 100, 100, 20, "buyval", "$BuyPrice|0|50|1|Not Buying")
osdaddat(OSDBUTTON, 220, 100, 150, 20, "SetBuy|&buyval", "Set Buy Price")
Params in the text field of the OSDValue are default value | Min Val | Max Val | Min Step | Min Val Text
(The 'min step' & 'min val text' are optional)
The &buyval reference in the params of the OSDButton response is replaced by the client with the current value of the named control, and accessed serverside in the normal way (i.e. $gParam[..] ). You can reference multiple value controls from a single button.