lundi 25 avril 2016

Tasker Scene Checkbox element set default value

Motorola Nexus 6 - Android ver. 6.0.1 - Tasker ver. 4.8u1m

Writing a task to first set a default value and then get user input to change default values for time-based profiles (SLEEP, WAKE, WORK and FREE). Setting default time values was relatively straight forward and easy. Check boxes, not so much.

There are 4 check boxes used to designate adjacent time values as 'PM' (or not). Check boxes 5-12, labeled "Sun | Mon | Tue | Wed | Thu | Fri | Sat", are used to designate workdays. The variable %TOD_wd is set to "off,on,on,on,on,on,off" (the typical 5 day workweek) and Split to an array. My goal is to set the default values (%old_val) for each check box before the scene is 'Shown'. The tutorials and examples online don't seem to clarify this topic.

If possible, what might be a workable method and syntax for setting the value of Scene>TOD_cnfg>Checkbox1>%old_val (to either 'off' or 'on' depending) from the calling task?

Thanks




Aucun commentaire:

Enregistrer un commentaire