-->
Page 2 of 3

Re: Flow control

PostPosted: Tue Apr 05, 2016 2:55 am
by Electroguard
Ah ha, thank you captain, that clears things up.

Re: Flow control

PostPosted: Tue Apr 05, 2016 6:15 am
by Electroguard
I've got a basic music player script working using buttons to branch to appropriate subroutines.

Then I tried adding a volume control slider, but it doesn't have a [branch] argument like the button, so although the slider value can be changed, I don't know how to make the changed slider value cause a branch to [setvol] in order to deal with it.

I think I'm going to have a similar branching situation if wanting to use text boxes to input track numbers etc

I'd appreciate a suggestion for how to branch on those actions?

Re: Flow control

PostPosted: Tue Apr 05, 2016 8:16 am
by Mmiscool
Currently there is no branch trigger for change of slider or textbox. You would jave to ise a button to exicute a branch that did some thing with the data.

Re: Flow control

PostPosted: Tue Apr 05, 2016 9:14 am
by cicciocb
You can use this techique but require a little bit of javascript :

http://www.esp8266.com/viewtopic.php?f=41&t=8557&p=42483&hilit=cicciocb#p42483