Ejemplo n.º 1
0
        /*private void BtnMin_Click(object sender, EventArgs e)
         * {
         *  if (bIsMinimized)
         *  {
         *      btnMin.BackgroundImage = Properties.Resources.sysMinPOEBg1;
         *      Height = 139;
         *      bIsMinimized = false;
         *  }
         *  else
         *  {
         *      btnMin.BackgroundImage = Properties.Resources.sysMaxPOEBg;
         *      Height = 18;
         *
         *      bIsMinimized = true;
         *  }
         * }*/

        private void button1_Click(object sender, EventArgs e)
        {
            ControlForm.g_bIsDropInformOn = false;
            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
            // Dispose.
            Close();
        }
Ejemplo n.º 2
0
        private void listResult_DoubleClick(object sender, EventArgs e)
        {
            if (listResult.FocusedItem == null)
            {
                return;
            }

            int    nIndex          = listResult.FocusedItem.Index;
            string strSelectedName = listResult.Items[nIndex].SubItems[1].Text;

            try
            {
                InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

                InputSimulator iSim = new InputSimulator();

                iSim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_F);
                iSim.Keyboard.TextEntry(strSelectedName);
                iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
            }
            catch (Exception ex)
            {
                DeadlyLog4Net._log.Error($"catch {MethodBase.GetCurrentMethod().Name}", ex);
            }
        }
Ejemplo n.º 3
0
        private void labelItemName_Click(object sender, EventArgs e)
        {
            InputSimulator iSim = new InputSimulator();

            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

            iSim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_F);
            iSim.Keyboard.TextEntry(_strItemName);
            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
        }
Ejemplo n.º 4
0
        private void btnIRB_Click(object sender, EventArgs e)
        {
            listResult.Items.Clear();

            foreach (var item in NinjaTranslation.RegionMapIRB)
            {
                string strSearch = String.Empty;
                if (LauncherForm.g_strUILang == "KOR")
                {
                    if (NinjaTranslation.transWhiteMaps.ContainsKey(item))
                    {
                        strSearch = NinjaTranslation.transWhiteMaps[item];
                    }
                }
                else
                {
                    strSearch = item;
                }

                if (String.IsNullOrEmpty(strSearch))
                {
                    if (NinjaTranslation.transUniqueMaps.ContainsKey(item))
                    {
                        strSearch = NinjaTranslation.transUniqueMaps[item];
                    }
                }

                ListViewItem lvItem = new ListViewItem();
                lvItem.Text = "";
                lvItem.SubItems.Add(strSearch);

                listResult.Items.Add(lvItem);
            }

            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

            InputSimulator iSim = new InputSimulator();

            iSim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_F);
            string strSendString = String.Empty;

            if (LauncherForm.g_strUILang == "KOR")
            {
                strSendString = "발도의 휴식처";
            }
            else
            {
                strSendString = "Valdo's Rest";
            }
            iSim.Keyboard.TextEntry(strSendString);

            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);

            labelRegion.Text = strSendString + " (Double click listed item to search.)";
        }
Ejemplo n.º 5
0
        private void BtnWhois_Click(object sender, EventArgs e)
        {
            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

            InputSimulator iSim = new InputSimulator();

            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);

            string strSendString = String.Format("/whois {0}", strCurrentNick);

            iSim.Keyboard.TextEntry(strSendString);

            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
        }
Ejemplo n.º 6
0
        private void btnTrade_Click(object sender, EventArgs e)
        {
            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

            InputSimulator iSim = new InputSimulator();

            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);

            string strSendString = String.Format("/tradewith {0}", _strNickName);

            iSim.Keyboard.TextEntry(strSendString);

            // Send RETURN
            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
        }
Ejemplo n.º 7
0
        private void BtnKick_Click()
        {
            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);

            InputSimulator iSim = new InputSimulator();

            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
            string strSendString = String.Format("/kick {0}", _strNickName);

            if (_strTradePurpose == "BUY")
            {
                strSendString = String.Format("/kick {0}", LauncherForm.g_strMyNickName);
            }
            iSim.Keyboard.TextEntry(strSendString);
            iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);
        }
Ejemplo n.º 8
0
        private void btnThx_Click(object sender, EventArgs e)
        {
            InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
            if (!String.IsNullOrEmpty(LauncherForm.g_strnotiDONE))
            {
                InputSimulator iSim = new InputSimulator();
                iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);

                string strSendString = String.Empty;
                try
                {
                    if (LauncherForm.g_strINVITECheckYNThx == "Y")
                    {
                        strSendString = String.Format("/invite {0}", _strNickName);
                    }
                    else if (LauncherForm.g_strTRADECheckYNThx == "Y")
                    {
                        strSendString = String.Format("/tradewith {0}", _strNickName);
                    }
                    else
                    {
                        strSendString = String.Format("@{0} {1}", _strNickName, LauncherForm.g_strnotiDONE);
                    }
                }
                catch
                {
                    strSendString = String.Format("@{0} thanks. gl hf~.", _strNickName);
                }
                iSim.Keyboard.TextEntry(strSendString);
                iSim.Keyboard.KeyPress(VirtualKeyCode.RETURN);

                if (LauncherForm.g_strTRAutoKick == "Y")
                {
                    BtnKick_Click();
                }
                if (LauncherForm.g_strTRAutoCloseThx == "Y")
                {
                    BtnClose_Click();
                }
            }
        }
Ejemplo n.º 9
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     ControlForm.bVoriciCalcFormViewing = false;
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
     Close();
 }
Ejemplo n.º 10
0
 private void BtnClose_Click(object sender, EventArgs e)
 {
     ControlForm.g_bIsSCANOn = false;
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
     this.Close();
 }
Ejemplo n.º 11
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     ControlForm.bISearchRegionOn = false;
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
     Close();
 }
Ejemplo n.º 12
0
 private void AwakenedRegionForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     panel1.Dispose();
     ControlForm.bISearchRegionOn = false;
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
 }
Ejemplo n.º 13
0
 private void Button1_Click(object sender, EventArgs e)
 {
     ControlForm.bIMGOvelayActivatedALVA = false;
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
     this.Close();
 }
Ejemplo n.º 14
0
 private void BtnClose_Click()
 {
     pictureBox1.Dispose();
     InteropCommon.SetForegroundWindow(LauncherForm.g_handlePathOfExile);
     Close();
 }