Categories > Coding > C# >
Finding mouse coordinates in console
Posted
After some searching, i couldn't find anything on how to do this. I need the mouse coordinates within the console app. Not just anywhere on the screen. I'm planning on making interactable buttons in a console application and my plan is to wait for a mouse click and if the current mouse position is in the button position, then do blahblahblah.
So back to the original question, does anyone know how to do this? (i am fully aware that there are console gui libraries but i can't understand it's confusing documentation)
Replied
If you mean this:
var relativePoint = this.PointToClient(Cursor.Position);Source: https://stackoverflow.com/questions/19164933/cursor-position-relative-to-application
Cancel
Post
C# and JavaScript |Â Learning C++
Join [Cyrup]
Replied
@WhiteCat Oh thanks i missed that cause my search terms were specified to console.
Cancel
Post
Replied
@63568 Your welcome, whats your discord?
Cancel
Post
C# and JavaScript |Â Learning C++
Join [Cyrup]
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post