Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Condition + mouse location

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Condition + mouse location

Post by themaster1 »

I'm trying to solve an issue i have since a long time with the OS Menu: i want it to show up on monitor 2 if i'm working on this monitor (meaning the mouse is on monitor 2) and i think i have a solution i just need a condition: if mouse is located at X/Y coordinates then enable item
Or better: If mouse X superior to 1081 then enable item
Thanks for your help python scripts gurus

Actually what i want is an If else
if to enable the os menu for monitor 2
else to enable it for monitor 1
Diabl0570
Posts: 30
Joined: Sun Feb 28, 2010 6:05 pm

Re: Condition + mouse location

Post by Diabl0570 »

Did you even search the internet for something like: "get mouse position in python"?

cause i just did and found this:
http://stackoverflow.com/questions/3698 ... -in-python

i did not test this with eventghost, you may need another library, but should work i think.

good luck
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Re: Condition + mouse location

Post by themaster1 »

Thanks for the hint.
i have actually found a way to display the osmenu on monitor1/2 without python

I have created 2 show menu macros and 2 macros in the switch, it work rather good
Post Reply