- Feb
- 16
- 0
Is there a way when using inkey /m to obtain the row/col where the click took place? In console character row/column, not screen pixel row/column.
If not, this would be a good feature add. Either extend inkey /m to return three items, so the @ascii conversion would return the mouse button, then the row number, then the column number. Or, to retain compatibility, add a /L (location) switch to use with /M to include the location in the result.
In the meantime, is there a way, when inkey /m detects a mouse click, to determine the character row/col relative to the console where the click occurred? Something via @winapi perhaps?
If not, this would be a good feature add. Either extend inkey /m to return three items, so the @ascii conversion would return the mouse button, then the row number, then the column number. Or, to retain compatibility, add a /L (location) switch to use with /M to include the location in the result.
In the meantime, is there a way, when inkey /m detects a mouse click, to determine the character row/col relative to the console where the click occurred? Something via @winapi perhaps?