Is there any way to get the coordinates of a pixel using the standard console? I know this is possible using the rather complicated Windows API by creating a Windows class, winproc handler etc.
The standard console seems to support setPixel but not getPixel. https://docs.microsoft.com/en-us/windows/console/console-functions
The MOUSE_EVENT_RECORD gives you the mouse position in character-cell coordinates.
Maybe get the width of the console window in pixels and divide by number of characters.
Consider to create a normal Windows app for this.
The console is not meant for this and everything is far more complicated.
The Windows API does support reading mouse click location, just use the HIWORD and LOWORD of the lparam parameter supplied to the window's WndProc() when you handle a mouse message.