If I understand correctly:
I can use an object.
I can even change objects (by use of Gui, -Object).
Or choose to not use objects (i.e. "the old way")
But, I can't do both (according the documentation, -Object needs to be followed by +Object)
That is, if I want to use you +Object with ONE control, then I must use it (or at least SOME object) with all controls. If I try to use an externally defined global, it'll be treated as a key within the active object.
Here's a snippet from my code "the old way"
Code: Select all
loop, 8
Gui, PlayerBox:Add, Checkbox, vbit%A_Index% , % bit%A_Index%description
Gui, PlayerBox:Add, Edit, vPlayerlevel, % Playerlevel
It would be nice, if I could have all the variable (my pseudo-array) bit1, bit2....bit8 and bit1description, bit2description.... in an array. Actually, I do, but I copy them in/out of the variables before/after the GUI, which is rather clunky.
Now, I think if I can use Gui, +ObjectMyBits to solve that problem.....but won't that mess with the global variable "Playerlevel"? (That is, I don't want it to be a part of MyBits. )
And....finally....don't stress yourself out too much addressing my questions. I don't have AutoHotkey_H, yet....so haven't played around with it. Just working off this thread & the documentation. But, hey, if you're bored.....happy to hear your thoughts.