This article applies to:
These samples demonstrate how to use a Custom SlideSlider Indicator using either a mouse or a keyboard.
CustomIndicator-Mouse.es3 demonstrates how to move the Custom SlideSlider with the mouse. If you need movement with the Cursor, you may use a InLine script as demonstrated in the linked sample below.
NOTE: CustomIndicator-Mouse.es3 is currently affected by the following bug: BUG: Custom SlideSlider Indicator cannot be dragged with mouse .
CustomIndicator-Keyboard.es3 demonstrates how to use the Keyboard to move the Custom Indicator. This does not require any script if you wish to move one Tick per press. To move the Tick once every 100ms, InLine script is used. The IsPending() method loops while the Slide with the SlideSlider is on-screen. The SlideSlider.Value is modified every 100ms when a arrow key (left/right) is held down.