V2EX › Windows
windows 窗口如何隐藏标题栏?
duzhor · Jun 27, 2022 · 5218 views
This topic created in 1475 days ago, the information mentioned may be changed or developed.
需求是远程桌面想隐藏掉上方的标题栏,让远程桌面更像是一个普通窗口。
找到了 2 个相同实现原理的工具,让游戏窗口实现无边框,但是有点点瑕疵,标题栏是隐藏了,但是窗口下方复制显示(不知道怎么表达)
https://github.com/KasumiL5x/Fullscreenizer
https://github.com/Zero3K/fullscreenizer
有没有更完美的工具实现?
Supplement 1 · Jun 27, 2022
我又优化了一下 ahk 脚本,供参考获取 mstsc.exe 进程的窗口位置和大小```SetTitleMatchMode 2WinGetPos, X, Y, W, H, ahk_exe mstsc.exeMsgBox, X,Y: %X%`,%Y%`nWxH:%W%x%H%```匹配指定窗口标题,隐藏标题栏并设置窗口大小和位置```SetTitleMatchMode 2WinSet, Style, -0xC00000, "远程连接 IP"WinMove, "远程连接 IP", , 888, 265, 1040, 784```