Beispiel #1
0
 private void FM_DemonWar_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.Dispose(true);
     this.Close();
     CrowdedRoom.OverCrowded();
     Application.Exit();
     Application.ExitThread();
 }
Beispiel #2
0
        private void BT_HFROOM_Click(object sender, EventArgs e)
        {
            if (BT_HFROOM.Text.IndexOf("浩 方 挤 房") != -1)
            {
                BT_HFROOM.Text = "取 消 挤 房";

                CrowdedRoom.HfRoom();
                //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx浩方配置
            }
            else
            {
                BT_HFROOM.Text     = "浩 方 挤 房";
                CrowdedRoom.iSquit = true;
                CrowdedRoom.OverCrowded();
            }
        }
Beispiel #3
0
        private void BT_VSROOM_Click(object sender, EventArgs e)
        {
            if (BT_VSROOM.Text.IndexOf("V S 擠 房") != -1)
            {
                BT_VSROOM.Text = "选择房间按下 Alt+空格 键";

                ChangeKey.KeyModify(this.Handle, 23, "Space", 1);
            }
            else
            {
                BT_VSROOM.Text     = "V S 擠 房";
                CrowdedRoom.iSquit = true;
                ChangeKey.UnregisterHotKey(Handle, 23);
                CrowdedRoom.OverCrowded();
            }
        }
Beispiel #4
0
        //按下设定的键时调用该函数
        private void ProcessHotkey(Message m)
        {
            IntPtr id  = m.WParam;
            string sid = id.ToString();

            switch (sid)
            {
            case "7":
                int[] Num7 = { 103 };
                ChangeKey.KeyBoardDo(Num7, War.HWnd);
                break;

            case "8":
                int[] Num8 = { 104 };
                ChangeKey.KeyBoardDo(Num8, War.HWnd);
                break;

            case "4":
                int[] Num4 = { 100 };
                ChangeKey.KeyBoardDo(Num4, War.HWnd);
                break;

            case "5":
                int[] Num5 = { 101 };
                ChangeKey.KeyBoardDo(Num5, War.HWnd);
                break;

            case "1":
                int[] Num1 = { 97 };
                ChangeKey.KeyBoardDo(Num1, War.HWnd);
                break;

            case "2":
                int[] Num2 = { 98 };
                ChangeKey.KeyBoardDo(Num2, War.HWnd);
                break;

            case "10":
                ClosRemoteByIndex(1);
                break;

            case "11":
                ClosRemoteByIndex(2);
                break;

            case "12":
                ClosRemoteByIndex(3);
                break;

            case "13":
                ClosRemoteByIndex(4);
                break;

            case "14":
                ClosRemoteByIndex(5);
                break;

            case "15":
                ClosRemoteByIndex(6);
                break;

            case "16":
                ClosRemoteByIndex(7);
                break;

            case "17":
                ClosRemoteByIndex(8);
                break;

            case "18":
                ClosRemoteByIndex(9);
                break;

            case "20":
                if (War.GamaValue > 0.05)
                {
                    Video.GamaValue = War.GamaValue -= 0.01;
                }
                if (CK_VideoGama.Checked)
                {
                    Video.SetGamma();
                }
                break;

            case "21":
                if (War.GamaValue < 0.1)
                {
                    Video.GamaValue = War.GamaValue += 0.01;
                }
                if (CK_VideoGama.Checked)
                {
                    Video.SetGamma();
                }
                break;

            case "22":
                if (War.HWnd == GetForegroundWindow())
                {
                    if (War.IsCanSpeak)
                    {
                        string str = TX_SpeakContent.Text;
                        if (str != "")
                        {
                            War.IsCanSpeak = false;
                            Clipboard.SetText(ConvertEncode(str));
                            ChangeKey.WarSpeak(War.HWnd);
                            War.IsCanSpeak = true;
                        }
                    }
                }
                break;

            case "23":
                CrowdedRoom.VsRoom();
                break;

            case "24":
                War.LensValue = War.LensValue + 300; break;

            case "25":
                Video.SendMouseDown(War.HWnd, 0, 30); break;

            case "26":
                Video.SendMouseDown(War.HWnd, 1, 30); break;

            case "27":
                Video.SendMouseDown(War.HWnd, 2, 30); break;

            case "28":
                Video.SendMouseDown(War.HWnd, 3, 30); break;

            case "29":
                Video.SendMouseDown(War.HWnd, 4, 30); break;

            case "30":
                Video.SendMouseDown(War.HWnd, 5, 30); break;

            case "31":
                Video.SendMouseDown(War.HWnd, 6, 30); break;

            case "32":
                Video.SendMouseDown(War.HWnd, 7, 30); break;

            case "33":
                Video.SendMouseDown(War.HWnd, 8, 30); break;

            case "34":
                Video.SendMouseDown(War.HWnd, 9, 30); break;

            case "35":
                Video.SendMouseDown(War.HWnd, 10, 30); break;

            case "36":
                Video.SendMouseDown(War.HWnd, 11, 30); break;
            }
        }