Nel*_*son 36 windows fullscreen user-interface title-bar
我喜欢在窗口模式下玩电脑游戏,而不是全屏模式。我不喜欢盯着标题栏、框架和其他 UI 垃圾。我也不喜欢在窗口周围的桌面上看到其他东西。是否有一个简单的 Windows 程序可以从其他应用程序的任意窗口中去除 UI 镶边?一个简单的方法是在窗口下方放置一个黑屏,隐藏桌面。
注意:我正在寻找专门处理小于我的桌面大小的窗口。有多种“窗口最大化”选项可以使窗口与桌面大小完全一致,并进行定位以使所有 UI 装饰都离开屏幕。(例如:ShiftWindow)。我试图从小于桌面大小的窗口中去除所有装饰。
mjs*_*jsr 23
只需使用此自动热键脚本:
;-Caption
LWIN & LButton::
WinSet, Style, -0xC00000, A
return
;
;+Caption
LWIN & RButton::
WinSet, Style, +0xC00000, A
return
;
Run Code Online (Sandbox Code Playgroud)
你可以从这里下载 autohotkey http://www.autohotkey.com/download/。使用扩展名 .ahk 保存文件并像运行任何应用程序一样运行它。
用法:
删除标题栏 LWindowButton + 左键单击
恢复标题栏 LWindowButton + 右键单击
Mik*_*kuz 17
在阅读了 voodoomsr 的评论后,我只是为了我的目的而制作的一些小东西。使它转到左上角并调整到我的完整分辨率。恢复原状。不能同时与多个应用程序一起使用。
谢谢 voodoomsr
;-Caption
LWIN & LButton::
SetTitleMatchMode, 2
WinGetPos, X, Y, Width, Height, A
WinSet, Style, -0xC00000, A
WinMove,A,,0,0,1920,1080
return
;
;+Caption
LWIN & RButton::
WinSet, Style, +0xC00000, A
WinMove,A,,%X%,%Y%,%Width%,%Height%
Sleep, 1000
Sleep, 1000
return
;
Run Code Online (Sandbox Code Playgroud)
编辑:
TBH 我试图找到一些对 Windows 有用的东西,它不会调整大小但找不到任何东西(不是说这是不可能的,这实际上是我的第一个 Autohotkey 脚本)。
无论如何,我进行了一些调整,例如删除不必要的睡眠,使用 Nelson 建议的样式并使其仅使用一个按钮工作,因此双击不会覆盖保存的变量。
#SingleInstance force
; Exclude the desktop
; Note: Also excludes "My Computer" browsing windows.
; Better detection might be needed to differentiate the parent explorer "ahk_id" from child windows.
; Also seems to disregard accidental Metro interface clicks (Win 8+)
#IfWinNotActive ahk_exe explorer.exe
; Set your resolution (minus decorations like start bars if you wish to leave those on-screen.
w = 1920
h = 1080
w_wasted = 6 ; width used by resize bars
h_wasted = 29 ; width used by caption frame and resize bars
; Window to fullscreen
LWIN & LButton::
SetTitleMatchMode, 2
WinGet Style, Style, A
; 0xC40000 = WS_BORDER (0x800000) + WS_DLGFRAME (0x400000) + WS_SIZEBOX aka WS_THICKFRAME (0x040000)
if(Style & 0xC00000) { ; if has WS_CAPTION. Ignore sizebox value.
WinGetPos, X, Y, Width, Height, A
WinSet, Style, -0xC40000, A ; removes attributes, including sizebox...doesn't do a strict subtraction
WinMove,A,,0,0,w,h
} else {
WinSet, Style, +0xC40000, A
; Note: will set WS_SIZEBOX even if not previously present
if(Width > w - w_wasted) {
Width := %w%-%w_wasted%
}
if(Height > h - h_wasted) {
Height := %h%-%h_wasted%
}
WinMove,A,,%X%,%Y%,%Width%,%Height%
}
WinSet Redraw
Return
Run Code Online (Sandbox Code Playgroud)
使用 AutoHotKey 和自动隐藏任务栏。
LWin & f::
WinGet Style, Style, A
if(Style & 0xC40000) {
WinSet, Style, -0xC40000, A
WinMaximize, A
} else {
WinSet, Style, +0xC40000, A
WinRestore, A
}
return
Run Code Online (Sandbox Code Playgroud)
为什么使用WinMaxmize?请参阅Asd 答案的评论。
| 归档时间: |
|
| 查看次数: |
103681 次 |
| 最近记录: |