Ejemplo n.º 1
0
 private void button_StartSort_Click(object sender, EventArgs e)
 {
     Stop = false;
     if (!Loaded)
     {
         MessageBox.Show("還未載入完全\r\nDoes not loaded.");
         return;
     }
     poeHwnd = ApplicationHelper.OpenPathOfExile();
     if (poeHwnd == IntPtr.Zero)
     {
         MessageBox.Show("未偵測到Path Of Exile\r\nDid't find Path Of Exile");
         return;
     }
     GetStashDimentions();
     MouseTools.SetCursorPosition(startPos1.X, startPos1.Y - (int)cellHeight1 * 3);
     MouseTools.MouseClickEvent(70);
     MouseTools.MouseClickEvent(70);
     Task.Delay(500);
     StartSorting((radioButton4.Checked ? 12 : 24));
 }