大漠免费版免注册-多线程按键


 
 

using System.Threading.Tasks;

using System.Windows;

using System.Runtime.InteropServices;

//添加现有项 obj.cs




1
[DllImport("DmReg.dll")] //第一步 2 public static extern int SetDllPathA(string path, int mode); //第二步 3 private void Button_Click(object sender, RoutedEventArgs e) 4 { 5 var dm_ret = SetDllPathA("dm.dll", 0);//第三步 6 dmsoft dm = new dmsoft(); // 创建对象 7 Task.Run(() => 8 { 9 System.Threading.Thread.Sleep(5000); 10 for (int i = 0; i < 1200; i++) 11 { 12 dm.LeftClick(); 13 System.Threading.Thread.Sleep(200); 14 } 15 }); 16 17 }

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM