How do I send information to a Pro Micro from another board

Im working on a touch screen display using sensors.
I have connected a Pro Micro and a Mega2560 to my desktop, and I have all the senors connected to my Mega. I need the Pro Micro to send mouse movements based on the distances I receive from the sensors.

I can only use one board at a time, Im not sure how to use both at the same time (even if I open a second Arduino Program).

Is there a way to send information over? Or will I have to find a different possible solution?

Im still new with coding and I have posted topics related to this project before, however Each question is different.

Thanks so much for the constant support!

@Diamond_Ice, stop cross-posting. Thread locked.