gpt4 book ai didi

visual-studio-2015 - 如何在 Windows 10/Visual Studio 2015 中禁用 F11?

转载 作者:行者123 更新时间:2023-12-05 03:12:12 25 4
gpt4 key购买 nike

Windows 太有用了。当我按下 F11 时,我的控制台会全屏显示。由于以下原因,我希望禁用它。

ConsoleKeyInfo input;
do
{
input = Console.ReadKey(true);
StringBuilder output = new StringBuilder(
String.Format(input.Key.ToString()));
string lockedDiceInput = Convert.ToString(input.Key);
//yes I should make a method for this but later
switch (lockedDiceInput)
{
case "F1":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[0]);
break;
case "F2":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[1]);
break;
case "F3":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[2]);
break;
case "F4":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[3]);
break;
case "F5":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[4]);
break;
case "F6":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[5]);
break;
case "F7":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[6]);
break;
case "F8":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[7]);
break;
case "F9":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[8]);
break;
case "F10":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[9]);
break;
// Not working
case "F11":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[10]);
break;
case "F12":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[11]);
break;
case "C":
Console.WriteLine("Assigning score to {0}", targetsSheetArray[12]);
break;
default:
//TODO
break;
}
}
while (input.Key != ConsoleKey.Enter);
}

F11 不会触发 case 'F11',控制台会全屏显示。如何关闭此“功能”?我可以修改我的控制台应用程序,也可以调整我的操作系统 (Windows 10)。

找到了类似的问题,但没有得到解答 ( here )。

最佳答案

Pressing F11 will not trigger case 'F11', the console will go full screen instead. How do I turn off this 'feature'?

您可以通过编辑注册表项来禁用“全屏”功能,在 cmd 提示符下键入“regedit”,转到 HKEY_CURRENT_USER -> 控制台,将 ForceV2 值从“1”更改为“0”。

关于visual-studio-2015 - 如何在 Windows 10/Visual Studio 2015 中禁用 F11?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34581259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com