Jump to content
Sign in to follow this  

Mouse DoubleClick Time

Recommended Posts


I searched the forums for how to pull the Windows DoubleClick timing and didn't find anything. So after checking out the exports from User32.dll I went on over to Platform SDK. In there I found the call for GetDoubleClickTime. For some this may be of some use for reasons I'd rather not say. Anyways, here is how to retrieve and set the timing for the DoubleClick:

Func _GetDoubleClickTime()
   Local $aDLL = DllCall("user32.dll", "uint", "GetDoubleClickTime")
   If Not @error Then Return $aDLL[0]

Func _SetDoubleClickTime($ms)
   DllCall("user32.dll", "int", "SetDoubleClickTime", "uint", $ms)

*Timing is in MilliSeconds

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