Jump to content

Recommended Posts

Posted

Hello! I'm looking for a script that will move the mouse exactly 1 pixel to the left, right, up, or down depending on which arrow key is pressed, the mouse will start at its current position where ever its placed on the screen, but once an arrow key is pressed, the mouse should then move 1 pixel in the direction of the arrow key pressed.

Posted

exactly what kind of function would i need to put in to make the mouse move say 1 pixel to the right from its current position?

Mousemove seems a bit confusing to me, i want to make it move in a direction from where the mouse is randomly placed, not a pre-determined spot thats already filled out.

Posted

  On 6/30/2011 at 2:38 AM, 'Fenix` said:

exactly what kind of function would i need to put in to make the mouse move say 1 pixel to the right from its current position?

Mousemove seems a bit confusing to me, i want to make it move in a direction from where the mouse is randomly placed, not a pre-determined spot thats already filled out.

I thing something like this would work:

$newMousePosition = $currentMousePosition + 1

Feed that into your MouseMove function and you will be all set.

#include <ByteMe.au3>

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
  • Recently Browsing   0 members

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