Jump to content

Recommended Posts

Hey, I know I'm kinda new here (1 post ^^) but I'm familiar with programming and I was wondering if there was a way to 'speed up' the mousemove. It takes way to long, like 2 seconds, which can mean life or death in the setting I'm attempting to use it in. Thanks a bunch, Vince

Link to post
Share on other sites

Hey, I know I'm kinda new here (1 post ^^) but I'm familiar with programming and I was wondering if there was a way to 'speed up' the mousemove. It takes way to long, like 2 seconds, which can mean life or death in the setting I'm attempting to use it in. Thanks a bunch, Vince

Hi & welcome,

have a look at the 3rd parameter of

MouseMove ( x, y [, speed] )

So long,

Mega

PS May have a llok at the Options too, AutoItSetOption

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to post
Share on other sites

While 1

MouseMove(800,600,100) ; (x xoord, y coord, speed)

Sleep(1000)

MouseMove(100,100,1000) ; (x xoord, y coord, speed)

Sleep(1000)

WEnd

wich one's faster? :whistle:

EDIT: the time is in milliseconds, so the first movement takes .1 second and the second movement takes one second.

Edited by omglol
Link to post
Share on other sites
  • 5 months later...

While 1

MouseMove(800,600,100) ; (x xoord, y coord, speed)

Sleep(1000)

MouseMove(100,100,1000) ; (x xoord, y coord, speed)

Sleep(1000)

WEnd

wich one's faster? :)

EDIT: the time is in milliseconds, so the first movement takes .1 second and the second movement takes one second.

FYI - The second one with a speed of 1000 is faster that the first one with a speed of 100. It is a scale from 0 to 100. Once you exceed 100, the function reverts to the default setting of 10.

For $i = 1 To 3
    $begin = TimerInit()
    MouseMove(800, 600, 100)
    MsgBox(0, "100", TimerDiff($begin), 2)

    $begin = TimerInit()
    MouseMove(100, 100, 1000)
    MsgBox(0, "1000", TimerDiff($begin), 2)
Next

[size="1"][font="Arial"].[u].[/u][/font][/size]

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

    No registered users viewing this page.

×
×
  • Create New...