![]() ![]() Also, take care that the code as it is, will write the LumensBackground variable. ![]() But when the value returned by this measure is changing, the OnChangeAction option will write the value returned by the measure itself (between 0 and 255), into the #FileToWrite# file, as the VariableToWrite variable and will refresh the skin. When you enter a value into the input box, the LumensBackground variable will get this value and the measure will return a value between 0 and 255. See that initially the LumensBackground variables is equal with 0 and there is just one single Command option into the measure. Here is my proposal:įormula=( Clamp ( #LumensBackground#, 0, 255 )) I tried to figure out how to implement what you asked. Usually it's not a good idea to have a !Refresh bang into the OnRefreshAction option. In some circumstances, the OnRefreshAction= option (depending on where you have it) will give a lot of headaches (it can create endless loop). You'll have to decide which one you'd like to write (I suppose the second, but it's not sure).ģ. Command1 will write what you entered into the input box, while Command2 will write the value returned by the measure. With the two Command options you want to write two different values for the same variable, into the same file. ![]() So, I think the proper form of this bang should be: =.Ģ. The second parameter here (in your code #VariableToWrite#) must be the name of the variable, without the # signs. You've used wrong the !WriteKeyValue bangs. It's not very clear to me what and how you'd like to achieve, but I see a few problems in your code:ġ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |