大漠免費版免注冊-多線程按鍵


 
         

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