It is currently March 28th, 2024, 5:11 pm

What monitor is the cursor on?

Share and get help with Plugins and Addons
Post Reply
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

What monitor is the cursor on?

Post by StArL0rd84 »

Have looked around a bit for a plugin/script that could tell me what monitor the cursor is currently on.
Do you know if something like this exists?

I am making a suite for a touch screen and i had a little breakthrough today sending the mouse cursor back to correct position on the main monitor after i tap the touch screen, using a combination of the MouseXY plugin and NirCMD > setcursor
But instead of having see through skins covering every monitor connected to the system to log the mouse position, i would like a plugin to tell me when the cursor is NOT on the touch screen, so i can know when to log the mouse X and Y position.
_MG_6673.JPG
It is possible to know the number of monitors connected with SysInfo.
Maybe this value could be used in a lua script?

Code: Select all

[mNumOfMonitors]
Measure=Plugin
Plugin=SysInfo
SysInfoType=NUM_MONITORS
This thread looks interesting:
https://stackoverflow.com/questions/26402955/finding-monitor-screen-on-which-mouse-pointer-is-present

Any guidance is appreciated.
Post Reply