I got an issue with AutoHotkey. I try to broadcast mouseclicks to other windows.
I want to get mouse coords, calculate new Y value and then move mouse to new location. I just got one problem.
The problem is this
Code:
yposmove = -70
MouseGetPos, xpos, ypos ;Get mouse position
ypos2 = Add(ypos, yposmove) ;Calculate new Y position
MouseMove, xpos, ypos2, screen ;Move to New position
AutoHotkey understands this ypos2 as string for some reason. So when I run this it moves mouse to MouseMove, xpos, 0, screen
Also tried MouseClick, left, xpos, ypos2, screen but that didnt work either.
Connect With Us