コード例 #1
0
ファイル: FM_DemonWar.cs プロジェクト: wuethan/wjewar
        private void RB_CloseConnection_CheckedChanged(object sender, EventArgs e)
        {
            if (War.HWnd != IntPtr.Zero)
            {
                int[] keyIndexGroup = { 10, 11, 12, 13, 14, 15, 16, 17, 18 };

                if (RB_CloseDescConnection.Checked)
                {
                    ChangeKey.UninstallKey(this.Handle, keyIndexGroup);
                    TX_ClosOrderRemote.Enabled = true;
                    BT_CloseALLRemote.Enabled  = true;
                }
                else if (RB_KeyDownCloseConnection.Checked)
                {
                    ChangeKey.UninstallKey(this.Handle, keyIndexGroup);

                    ChangeKey.KeyModify(this.Handle, 10, "D1", 1);
                    ChangeKey.KeyModify(this.Handle, 11, "D2", 1);
                    ChangeKey.KeyModify(this.Handle, 12, "D3", 1);
                    ChangeKey.KeyModify(this.Handle, 13, "D4", 1);
                    ChangeKey.KeyModify(this.Handle, 14, "D5", 1);
                    ChangeKey.KeyModify(this.Handle, 15, "D6", 1);
                    ChangeKey.KeyModify(this.Handle, 16, "D7", 1);
                    ChangeKey.KeyModify(this.Handle, 17, "D8", 1);
                    ChangeKey.KeyModify(this.Handle, 18, "D9", 1);

                    TX_ClosOrderRemote.Enabled = false;
                    BT_CloseALLRemote.Enabled  = false;
                }
            }
        }
コード例 #2
0
ファイル: FM_DemonWar.cs プロジェクト: wuethan/wjewar
        private void CK_VideoGama_CheckedChanged(object sender, EventArgs e)
        {
            if (War.HWnd != IntPtr.Zero)
            {
                if (CK_VideoGama.Checked)
                {
                    int ResultGammaValue = Video.SetGamma();

                    ChangeKey.UninstallKey(this.Handle, new int[] { 21, 22 });

                    ChangeKey.KeyModify(this.Handle, 20, "Up", 1);
                    ChangeKey.KeyModify(this.Handle, 21, "Down", 1);
                }
                else
                {
                    War.GamaValue   = 0.1;
                    Video.GamaValue = War.GamaValue;
                    Video.SetGamma();

                    ChangeKey.UninstallKey(this.Handle, new int[] { 21, 22 });
                }
            }
        }
コード例 #3
0
 /// <summary>卸载包裹改键
 ///
 /// </summary>
 public static void KeyModifyOFF(IntPtr hWnd)
 {
     int[] keGroup = { 7, 8, 4, 5, 1, 2, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 };
     ChangeKey.UninstallKey(hWnd, keGroup);
 }