110,570
社区成员
发帖
与我相关
我的任务
分享
string[] dp = dangqianf.Split('G');
for (int i = 0; i < dp.Length; i++)
{
string[] dian = dp[i].Split('H');
Point ty = pictureBox1.PointToScreen(did(dian[0]));
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, ty.X * 65536 / 1920, ty.Y * 65536 / 1080, 0, 0);
// PostMessage(Process.GetProcessesByName("Amazing Cultivation Simulator")[0].MainWindowHandle, MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, 0, ty.X + (ty.Y << 16));
System.Threading.Thread.Sleep(500);
// System.Threading.Thread.Sleep(100);
// PostMessage(Process.GetProcessesByName("Amazing Cultivation Simulator")[0].MainWindowHandle , WM_LBUTTONDOWN, 0, ty.X + (ty.Y << 16));
// System.Threading.Thread.Sleep(1000);
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, ty.X*65536/1920, ty.Y*65536/1080, 0, 0);
System.Threading.Thread.Sleep(100);
//System.Threading.Thread.Sleep(10);
// PostMessage(Process.GetProcessesByName("Amazing Cultivation Simulator")[0].MainWindowHandle, MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, 0, ty.X + (ty.Y << 16));
mouse_event(MOUSEEVENTF_LEFTDOWN, ty.X * 65536 / 1920, ty.Y * 65536 / 1080, 0, 0);
if (dian.Length > 1)
{
for (int ui = 1; ui < dian.Length; ui++)
{
ty = pictureBox1.PointToScreen(did(dian[ui]));
// System.Threading.Thread.Sleep(10);
System.Threading.Thread.Sleep(100);
// PostMessage(Process.GetProcessesByName("Amazing Cultivation Simulator")[0].MainWindowHandle, MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, 0, ty.X + (ty.Y << 16));
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, ty.X * 65536 / 1920, ty.Y * 65536 / 1080, 0, 0);
}
}
//System.Threading.Thread.Sleep(10);
// WinIo.MyMouseUp(1);
System.Threading.Thread.Sleep(100);
// PostMessage(Process.GetProcessesByName("Amazing Cultivation Simulator")[0].MainWindowHandle, WM_LBUTTONUP, 0, ty.X + (ty.Y << 16));
mouse_event(MOUSEEVENTF_LEFTUP, ty.X * 65536 / 1920, ty.Y * 65536 / 1080, 0, 0); ;
}