[Autohotkey-jk] winGetControls returns an array that can't be iterated over?
Posted: 13 Apr 2022, 01:13
I have a really strange result from using winGetControls in autohotkey-jk, on various windows, so for example in notepad, it will find 2 controls.
So it seems to be working, but every way to iterate an array, object, or other iterable, or print a variable in javascript is not working. Everything is blank, except JSON.stringify(Controls), which outputs "{}" an empty object. This is the same for windows that show 150 controls in Controls.length
I don't understand what is happening, is there some magic way to iterate the result of winGetControls in autohotkey-jk?
Code: Select all
Controls = winGetControls("Notepad")
msgBox(Controls.length) // outputs: 2
msgBox(JSON.stringify(Controls)) // outputs: {}
I don't understand what is happening, is there some magic way to iterate the result of winGetControls in autohotkey-jk?