Sign in to follow this  
Followers 0
kiwikid

Mouse DoubleClick Time

1 post in this topic

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]
EndFunc

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

*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  
Followers 0