:?:
I fail to see the usefulness of the first one (and how it is related to the second one).
And for the second, you can just write another function...
Why am I not surprised? The uses are obvious. Don't be a pest.
The first one would mainly be used for simplifying struct usage by allowing a variable name to be assigned for a specific offset of another variable but could also be useful in many cases where a specific location in a variable needs to be accessed frequently.
The second one is a user friendly shortcut to calling a function but gives the look/feel of creating an A_ style variable. Useful when creating #Include files to simplify usage for a user. For example:
If InStr(RE_Text, "Grumpy")
ExitApp
In the example above RE_Text could retrieve the text from a RichEdit control without having to call a function by name and specify a HWND, etc... There are many other examples where this could be handy. Unfortunately I don't have much time to give a more detailed response at the moment but I can try and elaborate later if you don't understand the usefullness of the concept.
The combination of the two could also greatly simplify struct usage...