Toady Posted May 30, 2007 Posted May 30, 2007 (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 May 30, 2007 by Toady www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
GaryFrost Posted May 30, 2007 Posted May 30, 2007 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.
Toady Posted May 30, 2007 Author Posted May 30, 2007 (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 May 30, 2007 by Toady www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
GaryFrost Posted May 30, 2007 Posted May 30, 2007 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.
Developers Jos Posted May 30, 2007 Developers Posted May 30, 2007 There is a 10ms hardcoded delay after the MouseMove() ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now