objects/arrays Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
awcrt9316
Posts: 61
Joined: 03 Mar 2020, 20:06

objects/arrays

31 Mar 2020, 14:51

I need 16 images on my gui to have an x value and a y value which can be manipulated and stored. would a object/array help with this? I have only a basic understanding of objects/arrays so I am not sure if I should list 32 variables or not.
User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: objects/arrays  Topic is solved

31 Mar 2020, 15:00

Yes, you could have a 16-element array that has a pair of coordinates tied to the image name (associative array) or number (simple array). And each of the 16 elements of that array would have a 2-element array so you could access each by indicating .x or .y after identifying the element for a particular image.

Or if it's simpler for you, you could have a three simple arrays indexed from 1 to 16, one for each of the image name, x value, and y value.
awcrt9316
Posts: 61
Joined: 03 Mar 2020, 20:06

Re: objects/arrays

31 Mar 2020, 15:03

@boiler that helps a lot, thanks!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jameswrightesq and 421 guests