It is currently February 19th, 2020, 11:44 am

What monitor is the cursor on?

Share and get help with Plugins and Addons
User avatar
StArL0rd84
Posts: 336
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.
You do not have the required permissions to view the files attached to this post.
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))