Hey,
I have found several places in the help file that explaine this probably plenty fine for most people but i guess im too slow.
I can't seen to allocate this array.
Dim $vChoords[1][1]
WinActivate("blackend")
Sleep(2000)
WinMove("blackend", "", 0, 0)
Sleep(2000)
$vChoords = PixelSearch(173, 110, 176, 117, 8279893)
Sleep(2000)
If @error = 1
MsgBox(0, "couldn't find the pixel")
Else
MsgBox(0, "choords are:", $vChoords[0] & "," & $vChoords[1])
EndIf
this script is just to help me to find the choords to use for PixelSearch .. i can't use AutoIt's Window Spy because the mouse is messed up in this aplication.
When I run the script i get an error "Subscript used with non-Array variable." and the pointer is at
MsgBox(0, "choords are:", $vChoords[0] & "," & $vChoords[1])
MsgBox(0, "choords are:", $vChoords^
So I assume I'm not Allocateing $vChoords as an array corectly so I have tried it several different ways with no resolve.
Have tried Dim $vChoords[2] as well as trying the script without allocating the variable before useing it .. since autoit seems to create vars as they are defined and does a good job of setting the type.