I have the new Teensy 3.5 board. I looked at the mouse examples that came with the Teensy inside the Ardunio IDE, but did not see any examples of what I'm trying to do.
My project is going to simulate mouse clicking on the PC screen to operate a windows application. I can pretty much do that as I've worked on the code to make that part work.
However, I need to know the X,Y position of the upper left corner of the app window and the X,Y of it's lower right corner. What I thought I'd do in my sketch, is to use the Teensy mouse lib and move my PC mouse to the upper left corner and click and record the X,Y values and then do the same for the lower right corner. Then my sketch can calculate the correct offsets to operate the various buttons in the windows application.
I'm stuck at figuring out how I can use my sketch to receive the X,Y values as I move my PC mouse around on the screen. Are there any examples of this someone can point me to?
Thank you for any help...
My project is going to simulate mouse clicking on the PC screen to operate a windows application. I can pretty much do that as I've worked on the code to make that part work.
However, I need to know the X,Y position of the upper left corner of the app window and the X,Y of it's lower right corner. What I thought I'd do in my sketch, is to use the Teensy mouse lib and move my PC mouse to the upper left corner and click and record the X,Y values and then do the same for the lower right corner. Then my sketch can calculate the correct offsets to operate the various buttons in the windows application.
I'm stuck at figuring out how I can use my sketch to receive the X,Y values as I move my PC mouse around on the screen. Are there any examples of this someone can point me to?
Thank you for any help...