Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dual Monitors - window becomes active when mouse is in monit
#1
I have dual monitors and am always getting caught when moving between them with typing because I did not click in the new window on the other monitor first. Now I know I can just click and have windows make that app active, but why not just have QM make the top window active when the mouse shows up in that monitor.

I have tried using

Code:
Copy      Help
;Get mouse pointer position on Screen position
int px(xm)
out px
if px <= 1224
,act ;;win(100 500)
else
,act ;;win(250 1500)

It will work if the right screen is active and I place the mouse in the left screen and then invoke the macro - but cannot figure the logic to make it work the other way or once I did I would then have no idea on how to have the macro loop each time I changed screens so it would still run when I went back to the other screen.

Any of your programming guru's have any thoughts on this?

Thanks

carl


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)