a question about arrays.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
vkqzhs

a question about arrays.

18 Dec 2017, 11:43

Here is the script:

Code: Select all

global Table := {}, global z1 := [],     global z2 := [], global z3 := [], global EndCnt
Table.Push(z1)
Table.Push(z2)
Table.Push(z3)

Table := { z1:[2], z2:[6, 4] , z3:[100, 102, 200, 202, 300, 302, 400, 402, 500, 502] }    
z3 is the coordinate values found in the image search and z2 is the number of coordinate sets. And z1 is the number of image searches.
For example, when searching for the first image ... Finding the coordinate values 100 ~ 302 and searching for the second image, find 400 ~ 502 and assign it to the array as above.

I want to do the following.

Code: Select all

Loop % Table.z1.1 
{
	Loop {
	
		; I want to get the coordinates from z3 and do things
	
	}
	 
	
}

I would appreciate it if you could provide a hint or a related link.
User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: a question about arrays.

18 Dec 2017, 16:48

Code: Select all

Loop % Table.z1.1 
{
    For Index, Value In Table.z3 {
        MsgBox, % Value
    }
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Theda, w_i_k_i_d and 273 guests