Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Faster Mouse Movement?


  • Please log in to reply
5 replies to this topic
Syrphian
  • Members
  • 132 posts
  • Last active: Sep 14 2017 04:37 AM
  • Joined: 03 Apr 2011
Is AutoHotkey capable of sending faster mouse movements than this? I know that 0 is supposed to be the fastest setting, but even at this value it isn't as fast as EZ Macros, which is an infinitely inferior program that can perform lightning-fast mouse movements, about twice the speed of AutoHotkey.

F2::
Loop
{
    If GetKeyState("F4")
        break
    MouseClickDrag, L, 139, 176, 182, 130, 0
    MouseClickDrag, L, 183, 131, 138, 175, 0
}

Does anyone know of a way to make the above go any faster? I find it hard to believe that this is the extent of AHK's mouse speed.

dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
How fast are you wanting it to go? I tried it on my machine and it went through five loop iterations in just under a second. is it slower than that on your system?
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

None
  • Members
  • 3199 posts
  • Last active: Nov 05 2015 09:55 PM
  • Joined: 28 Nov 2009
SetMouseDelay,-1 ;remove delays from mouse actions

F2:: 

Loop 

{ 

    If GetKeyState("F4") 

        break 

    MouseClickDrag, L, 139, 176, 182, 130, 0 

    MouseClickDrag, L, 183, 131, 138, 175, 0 

} 

Return


dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
Wow! None's version goes through 20 loops in under a second. A significant improvement.
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

  • Guests
  • Last active:
  • Joined: --
Or if you need just a little more:
SetMouseDelay,-1 ;remove delays from mouse actions
SetBatchLines, -1
Process, Priority,, High
F2::
start := A_TickCount
Loop, 1000
{
    Gosub, % GetKeyState("F4")
}
MsgBox % (A_TickCount - start)/1000
Return

0:
		MouseClickDrag, L, 139, 176, 182, 130, 0
		MouseClickDrag, L, 183, 131, 138, 175, 0
return

1:
reload
:D

Syrphian
  • Members
  • 132 posts
  • Last active: Sep 14 2017 04:37 AM
  • Joined: 03 Apr 2011
You guys are the best. Running even faster than EZ Macros. Thanks.