Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to run two functions simultaneously?

0
Posted

How to run two functions simultaneously?

0

I really appreciate any sort of help or comment, I want to run two functions simultaneously such that the first function monitors mouse coordination and the second one talks to the serial port, both in a real-time frame. On the other hand, the first function is supposed to trigger/alert the second one whenever the mouse coordination is at (x1,y1). What is the best possible method to do that? P.S.: Please note that I’m not asking about how to talk to serial port or capturing the mouse position, the question here is how to run these two functions at the same time and passing a variable from one to the other in a real-time frame.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.