Jump to content

Slow down mouse speed?


Recommended Posts

Hello, im not good at autoit at all but would like to know if someone could help me slow down the mouse speed on this script??? The mouse moves too fast...

Thanks

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.1.0

; Author: Bisquit aka spix1

;

; Script Function: Restarts WoWGlider-Demo when it stops working

;

;

; ----------------------------------------------------------------------------

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

MsgBox(4096, "Glider Restarter", "1. Start the glider and logon to wow and logon your char, then click OK.")

MsgBox(4096, "Glider Restarter", "2. Set wow to windowed mode and place it in your left top corner, then click OK.")

MsgBox(4096, "Glider Restarter", "3. Open the glider folder and place it in the right top corner, then click OK ")

MsgBox(4096, "Glider Restarter", "4. Load the profile you want and go the the place you need to go, then click OK")

MsgBox(4096, "Glider Restarter", "Hold your mouse over the glider.exe in glider folder, then press ENTER.")

$glider = MouseGetPos()

MsgBox(4096, "Glider Restarter", "Hold you mouse over the Attach button in Glider, then press ENTER.")

$attach = MouseGetPos()

MsgBox(4096, "Glider Restarter", "Hold your mouse over the Glide button in the glider, then press ENTER")

$glide = MouseGetPos()

MsgBox(4096, "Glider Restarter", "Hold your mouse over the close button in Glider, then press ENTER.")

$close = MouseGetPos()

MsgBox(4096, "Glider Restarter", "DONT move any of the windows, or somthing will be messed up. If u want to Stop the script press END. If u want to Pause the script press Home.")

MsgBox(4096, "Glider Restarter", "Press OK when u want to start.")

WHile 1

MouseClick ( "left", $glider[0], $glider[1], 1, 10)

sleep(500)

MouseClick ( "left", $attach[0], $attach[1], 1, 10)

sleep(500)

MouseClick ( "left", $glide[0], $glide[1], 1, 10)

sleep(60000)

MouseClick ( "left", $close[0], $close[1], 1, 10)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Link to comment
Share on other sites

Take a look at this:

MouseClick ( "button" [, x, y [, clicks [, speed ]]] )

and this

[optional]the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.

All straight from the helpfile :D

Alzo

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link to comment
Share on other sites

  • Moderators

Or even look at Opt('MouseClickDelay')

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...