Jump to content

Mousemove not moving instantly?


Recommended Posts

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

Link to comment
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.

 

Link to comment
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?

Edited by Toady

www.itoady.com

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

Link to comment
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.

 

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