Sign in to follow this  
Followers 0
Toady

Mousemove not moving instantly?

5 posts in this topic

#1 ·  Posted (edited)

I need this to be approximately 0, instead im getting 10 millisecond delay, this is crucial for an application im developing. Those 10 millisecond delays add up if there are a lot of mouse moves.

Global $timerit = TimerInit()
    MouseMove(0,0,0) ; 3rd paremeter is set to 0, that should be instant
    ToolTip(TimerDiff($timerit)) ;saying its 10 milliseconds.

I can't seem to find any Opt() option I can set. I need this to be at ~ 0 millisecond. Did I miss something here?

Edited by Toady

www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Share this post


Link to post
Share on other sites



I need this to be approximately 0, instead im getting 10 millisecond delay, this is crucial for an application im developing. Those 10 millisecond delays add up if there are a lot of mouse moves.

Global $timerit = TimerInit()
    MouseMove(0,0,0) ; 3rd paremeter is set to 0, that should be instant
    ToolTip(TimerDiff($timerit)) ;saying its 10 milliseconds.

I can't seem to find any Opt() option I can set. I need this to be at ~ 0 millisecond. Did I miss something here?

Any functions you call trying to calculate it is going to add time, I just ran it on mine and it said 10 ms but the mouse had moved way before the result was returned.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Global $timerit = TimerInit()
    MouseMove(0,0,0) ; 3rd paremeter is set to 0, that should be instant
    MouseMove(0,1,0) ; 3rd paremeter is set to 0, that should be instant
    ToolTip(TimerDiff($timerit)) ;saying its 10+10 = 20 milliseconds

This proves that its mouse move that is causing the 10 millisecond delay. If you do 2 mouse moves then there is a 20 ms delay.

What now?

Edited by Toady

www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Share this post


Link to post
Share on other sites

Global $timerit = TimerInit()
    MouseMove(0,0,0) ; 3rd paremeter is set to 0, that should be instant
    MouseMove(0,1,0) ; 3rd paremeter is set to 0, that should be instant
    ToolTip(TimerDiff($timerit)) ;saying its 10+10 = 20 milliseconds

This proves that its mouse move that is causing the 10 millisecond delay. If you do 2 mouse moves then there is a 20 ms delay.

What now?

Quit making bots for games..... (j/k)

Take it up with the Devs.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


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
Sign in to follow this  
Followers 0