I'm working on a color picker using modified scripts from this thread, but no matter what I do, I can't get the element to show the preview color in my HSTouch Project:
I tried setting the StatusTracking to the image but no joy. Tried setting up the element as an image and as a button.
I thought maybe turn off StatusTracking and set the element's image via a script using the ImageNorm pluginfunction, although I'm not sure of the proper syntax:
"Color Preview Box" is the name of the element. As shown above, that's not working either.
FWIW, the graphic image is being saved correctly, but the HS4 device page won't show the new image until I refresh the screen. HSTouch will show the updated image if I exit the app and re-launch.
Any thoughts would be appreciated!
I tried setting the StatusTracking to the image but no joy. Tried setting up the element as an image and as a button.
I thought maybe turn off StatusTracking and set the element's image via a script using the ImageNorm pluginfunction, although I'm not sure of the proper syntax:
Code:
hs.PluginFunction("HSTouch Server", "", "ClientAction", {42, "Android:OFFICE TABLET", "Color Preview Box", hs.GetAppPath & "\html\images\HomeSeer\status\COLORPICK.png})
FWIW, the graphic image is being saved correctly, but the HS4 device page won't show the new image until I refresh the screen. HSTouch will show the updated image if I exit the app and re-launch.
Any thoughts would be appreciated!
Comment