Code: Select all
BIF_DECL(BIF_ReturnEmptyArray)
{
Object *output_array = Object::Create();
aResultToken.symbol = SYM_OBJECT;
aResultToken.object = output_array;
}
Relevant functions: StrSplit (AHK v1/v2), WinGetList (AHK v2).
Potentially relevant code: Object::Append, which is inside script_object.cpp (AHK v1/v2).
The idea is to create arrays/objects containing integers/floats/strings.
One use would be for a Range function.
traditional for loop: for i = a to b (step c) possibilities - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=43022&p=238737#p238737
Thanks.