09-14-2005, 05:18 PM
Hi, i was wondering if any1 could help me on these two.
1.
I have an image of a chessboard and each sguare has a coordinate. I`d like to make user click on desired square and the macro to fill an array with coordinates of given square.
For example:
There is a msg box click a1 square, user clicks that a1 square and program saves it`s coordinates. Then anather msg box is displayed : click a2 square.... and so on, untill all squares are finished. And then procced with following code but still refering to that array.
2.
How to make +/- adjustments to coordinates.
Let`s say i recognize squares by its coordinates but i would like to assume that coordinates are not allways 100% accurate. So if program is given let`s say co: x 100 and y 200 and they belong to a1 square he recognize it is a1 square. However i wolud like it to recognize a1 square even if x or y was +/- 5.
Any idea how to do it the decent way?
Thanks
1.
I have an image of a chessboard and each sguare has a coordinate. I`d like to make user click on desired square and the macro to fill an array with coordinates of given square.
For example:
There is a msg box click a1 square, user clicks that a1 square and program saves it`s coordinates. Then anather msg box is displayed : click a2 square.... and so on, untill all squares are finished. And then procced with following code but still refering to that array.
2.
How to make +/- adjustments to coordinates.
Let`s say i recognize squares by its coordinates but i would like to assume that coordinates are not allways 100% accurate. So if program is given let`s say co: x 100 and y 200 and they belong to a1 square he recognize it is a1 square. However i wolud like it to recognize a1 square even if x or y was +/- 5.
Any idea how to do it the decent way?
Thanks