Regarding:
http://www.autohotkey.com/forum/viewtopic.php?t=35041
Fingers crossed that particular lib is going to be updated + documented
in the near future, here are some basic usage examples:
Code:
; adding values to array
Stack:=SA_Set(Stack, 3) ; stack: 3
Stack:=SA_Set(Stack, 2) ; stack: 3-2
Stack:=SA_Set(Stack, 4, +2, true) ; stack: 3-4-2, e.g. insert 4 at position 2 in array
Stack:=SA_Set(Stack, 1) ; stack: 3-4-2-1
Stack:=SA_Set(Stack, 8, -1, true) ; stack: 3-4-2-8-1 , e.g. insert 8 at one to last position
;Var:=SA_Get(Stack, -1) ; =1 get last stack item
MsgBox % SA_Get(Stack, -1) ; =1 get last stack item
MsgBox % SA_Get(Stack, 2) ; =4 second item
MsgBox % SA_Len(Stack) ; 5
Stack:=SA_Del(Stack, -1) ; remove last item from array (-1)
MsgBox % SA_Len(Stack) ; 4