Exemple #1
0
 private void button_StartSort_Click(object sender, EventArgs e)
 {
     Stop = false;
     if (!Loaded)
     {
         MessageBox.Show("還未載入完全\r\nNot loaded.");
         return;
     }
     poeHwnd = ApplicationHelper.OpenPathOfExile();
     if (poeHwnd == IntPtr.Zero)
     {
         MessageBox.Show("未偵測到Path Of Exile\r\nCould not find Path Of Exile");
         return;
     }
     GetStashDimentions();
     MouseTools.SetCursorPosition(startPos1.X, startPos1.Y - (int)cellHeight1 * 3);
     MouseTools.MouseClickEvent(70);
     MouseTools.MouseClickEvent(70);
     Task.Delay(500);
     if (radioButton1.Checked)
     {
         StartSorting((radioButton4.Checked ? 12 : 24));
     }
     else
     {
         Round40Q((radioButton4.Checked ? 12 : 24), radioButton2.Checked ? 0 : 1);
         resoult = Sort(Items, used, (radioButton4.Checked ? 12 : 24));
         DrawBoxRegion(Items, (radioButton4.Checked ? 12 : 24), 1);
         DrawBoxRegion(resoult, (radioButton4.Checked ? 12 : 24), 2);
     }
 }
Exemple #2
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));
 }