Great. I see, as an example, the following from Zoom Camera Script that:The following constants are used when setting up messages for user interface elements. Any messages you use in your custom controls should be greater than or equal to the MSG_BASE constant so as not to interfere with other GUI elements in Moho. For example you could use the following messages in a dialog you create: MSG_BASE, MSG_BASE + 1, MSG_BASE + 2, etc.
MSG_BASE - The starting message code for use by Moho scripts
LM_ZoomCamera.BASE_STR = 2380
Well, gee, the number 2380 is so obvious from the above description! (sarcasm off)
It seems to imply setting this up as a constant is a bad thing to do. Yet, that's the only way I've ever seen it used. Nobody uses the MSG_BASE = MSG_BASE + offset form. They establish a CONSTANT.
And look! Translate Layer does not use MSG_BASE at all! So its not very clear why its needed, or what it's for...
You know, studying other people's scripts really is a TERRIBLE way to HAVE TO get familiar with this stuff. This is not a language conducive to that kind of study, since variables are not declared and so their use and type are never clear. And apparently everyone has formed a pact, vowing to never comment anything! LOL
And this is a very poor way to FORCE everyone to learn. Imagine learning cooking by just being given a cookbook, and no description of the ingredients. Anything not in the recipes will NEVER be learned, and you are reduced to using only those components that previous people used, and only know how to use them EXACTLY as the previous people used them.
And in this case, the 'cookbook' has to be found page by page in many places, many leads ending in dead links, no way of knowing if a particular script is going to help your situation without studying it COMPLETELY, and no guarantee ANYONE has a script that illustrated what you need. This is really BAD if you want to try to do stuff nobody else has before.
The lack of a COMPLETE formal document.... is EXTREMELY frustrating! That and nobody responding here except to always say:
- study other scripts
- look at the sticky topics
ARGHHHHHHHHHHHHHHH! I AM, I HAVE, and I WILL.
I'm trying to create a tool I think a lot of people will enjoy. PLEASE help me make that possible!
NOTE: I have written this same plea a number of times recently in various posts.
PLEASE DO NOT POINT ME TO THE STICKY TOPICS FOR INFORMATION, THAT IS WHAT I HAVE BEEN STUDYING, AND THOSE STICKY DOCUMENTS DO NOT ANSWER THE QUESTIONS I NEED ANSWERING.
But I appreciate your sentiment anyway!