First of all, I'm using 2 screens: monitor on left and laptop on right. I've made a SCRIPT with clicks, it all clicked whereever I wanted to. How did it work:
1) on my left monitor I had script.
2) on laptop I had maximized window of application
3)script after double click was clicking it all correctly.
But, when I added script to GUI with buttons, or even same script but with WinActivate, mouse coords got screwed and clicked in wrong places. Why it did happen? Do I have to find mouse coordinates once again?
Mouse coordinates are different with Menu or Window Activate Topic is solved
Re: Mouse coordinates are different with Menu or Window Activate Topic is solved
Try adding
on top (auto-execute section)
Otherwise the coordinates are relative to the current active window.
Code: Select all
CoordMode, Mouse, Screen
Otherwise the coordinates are relative to the current active window.