Close
Showing results 1 to 10 of 11

Threaded View

  1. #1

    Default Mousemove - Basic math problems..

    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.
    Last edited by aasi888 : 01-31-2012 at 10:45 PM Reason: Changed Title Of Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •