Jump to content

MouseMove+pos


 Share

Recommended Posts

  • Moderators

$MousePos[0]-1 = move left from last MousePos ($MousePos = MouseGetPos()) recorded 1 pixel.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

yea but MouseMove($MousePos[0]+1,$MousePos[1]) it moves forward...and then MouseMove($MousePos[0]-1,$MousePos[1]) moves it back..

Are you not seeing what I'm saying? You don't get the mouse position after you move it to the right 1 you only get it once... So this is how yours goes

1. Get current position, lets say it is 500, 500

2. Move Right 1 pixel From 500, 500 to 501, 500

3. Move Left 1 pixel From 500, 500 to 499, 500

You have to tell it what to do, it doesn't make guesses :whistle: .

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...