Page 1 of 1

Condition + mouse location

Posted: Thu Sep 27, 2012 8:44 am
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

Re: Condition + mouse location

Posted: Fri Sep 28, 2012 8:48 am
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

Re: Condition + mouse location

Posted: Fri Sep 28, 2012 4:11 pm
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