获取鼠标双击时间间隔

using System.Runtime.InteropServices;

       [DllImport("user32.dll", EntryPoint = "GetDoubleClickTime")]
        public extern static int GetDoubleClickTime();
        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(GetDoubleClickTime() + "毫秒");
        }

 

posted @ 2021-11-04 20:43  li130  阅读(248)  评论(0)    收藏  举报