c#模拟鼠标点击DEMO
c#winform模拟鼠标点击DEMO//获取当前窗口句柄:GetForegroundWindow[DllImport("user32.dll",EntryPoint="FindWindow",SetLastError=true)]privatestaticexternIntPtrFindWindow(stringlei,stringkou);返回值类型是IntPtr,即为当前获得焦点窗口的句柄使用方法:IntPtrmyPtr=GetForegroundWindow();
下载地址
用户评论