Quote Originally Posted by aasi888
I need the program to understand ypos2 as valuee.g 1023.
I use ':='. For example
RY := (MY - BigWoWY)/BigWoWH*SmallWoWH + BigWoWH
MouseClick, left, tx, RY, 2



Quote Originally Posted by aaasi888
The Screen command: ; Interprets the coordinates below as relative to the screen rather than the active window. You can read about it in CoordMode section.
When I post you the question on screen variable, I was referring to your codes

Quote Originally Posted by aaasi888
MouseMove, xpos, ypos2, screen ;Move to New position
AHK - MouseMove, X, Y [, Speed, R]
e.g. MouseMove, 20, 30, 50, R

Your working code
Quote Originally Posted by aaasi888
A comma is missing in your non-working code?


At any rate, you should be able to solve this problem.

Happy hunting!