I would like to click on main monitor and send click to same place on alt monitor.
Main monitor: 2560x1440, alt monitor is 1920x1080
This code sends a click,just in the wrong spot.
Any help would be much appreciated after several days of trying different solutions and so far only getting this code to actually send a click.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
WinGet, WowID, List, World of Warcraft
#InstallMouseHook
~LButton::
MouseGetPos, xpos, ypos
WinActivate, Ahk_ID %WowID2%
MouseClick, , %xpos%, %ypos%, , 0
WinActivate, Ahk_ID %WowID1%
MouseMove, %xpos%, %ypos%, 0
Return