Its difficult to hold the rectangle on still with my left hand on the mouse, and then copy dx and dy from the screen with my right hand using a pen.
Sounds like you're making a rod for your own back! The correct answer is, of course, given above. But suppose there wasn't an actual measuring tool and one had to do it via your method....
I assume you're right-handed since you write the answer with that hand, so using the mouse left-handed is going to lead to tears regardless of anything else. Why can you not use the mouse normally and then, when the rectangle's corner is where you want it, just
leave go of the mouse? It's not going to run off after some cheese but will stay where you leave it. Then copy the measurements at your leisure.
But aside from that, I am intrigued as to why you need to do that at all. Can you not just look at the screen and repeat to yourself,
sotto voce, "128, 57" or whatever the x and y values are. Surely they would then stay in your mind long enough to pick up a pen and write them down without needing to refer to the screen mid-transcription.