@woshichuanqilz
2015-12-11T09:30:05.000000Z
字数 1066
阅读 4771
AHK
Windows
从Win7 升级到Win7之前的Cmd窗口中的字体修改和窗口大小的修改不是那么好用了。
好了这里给出我的可以使用的版本, 具体查找相关资料的过程就不在赘述了。
我是用AHK的快捷键启动的Cmd窗口, 用WinMove完成我的功能。
#c::
{
SetTitleMatchMode, RegEx
WindowTitlePath:="C:\\Windows\\system32\\cmd.exe"
WindowTitle := WindowTitlePath
IfWinNotExist, %WindowTitle%
{
run "C:\Windows\system32\cmd.exe"
WinWaitActive, %WindowTitle%, , 2
WinMove, %windowtitle%,,,,1140,800
WinGetPos,,, Width, Height, %WindowTitle%
WinMove, %WindowTitle%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
}
return
}
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
"WindowSize"=dword:00170058
"ScreenBufferSize"=dword:01900119
"WindowPosition"=dword:0079004b
"ColorTable01"=dword:00235600
"FontSize"=dword:00150000
"FontWeight"=dword:00000190
"FaceName"="Consolas"
"FontFamily"=dword:00000036
把上面的代码保存成.reg文件然后运行就好了。
Stupid Geek Tricks: Enable More Fonts for the Windows Command Prompt
Modify cmd.exe properties using the command prompt
Tnx for reading?
: )