How to get Notepad to enter fullscreen?
Windows Notepad is my favorite text reader on Windows 10. It takes very little ram, allows me to customize font, and has clean interface. How can I make it go full screen like TextEdit on MacOS?
3 Answers
Notepad does not offer a true full-screen feature.
The only alternative I can think of is this one:
If you want notepad to remember this position for every time you open it (either when starting notepad or when opening a file through explorer) make sure you drag the edges of the window, and not use the maximize button. Also, when you drag the edges and windows snaps the window (it suddenly is perfectly in height or width or both) windows will not remember it either.
You can see this is happening if a circle is showing around the mouse cursor. The only way to not get it to snap is either to turn off the feature or alter the size of the window pixel by pixel. So you resize it to about 20 pixels away from the border then release the mouse button. Then you click and drag a few pixels at the time and release again. This way, windows will not start the snap feature and you can resize it to fully fit the screen.
Once done, close notepad and the setting is remembered.
10I've worked out a script in AutoHotkey for this just now, thanks for the interesting idea. I've only tested it on Windows 7, so I hope it works on Windows 10 too. It uses two key combinations to turn fullscreen on/off. It resizes the windows, expands it a bit beyond the screen to hide the scrollbars, and removes the menu bar and title bar.
#IfWinActive, ahk_class Notepad
^q:: ;notepad fullscreen on
WinGet, hWnd, ID, A
WinGetClass, vWinClass, ahk_id %hWnd%
if vWinClass not in Notepad
Return
WinGet, vWinMinMax, MinMax, ahk_id %hWnd%
if (vWinMinMax = 1) ;1=max/0=res/1=min
WinRestore, ahk_id %hWnd%
if (hMenu%hWnd% = "")
hMenu%hWnd% := DllCall("GetMenu", "uint", hWnd)
if (vPos%hWnd% = "") OR (vWinMinMax = 0)
{
WinGetPos, vPosX, vPosY, vPosW, vPosH, ahk_id %hWnd%
vPos%hWnd% := vPosX "," vPosY "," vPosW "," vPosH
}
WinSet, Style, -0xC00000, ahk_id %hWnd% ;hide title bar
DllCall("SetMenu", "uint", hWnd, "uint", 0) ;hide menu bar
WinMove, ahk_id %hWnd%, , 0, 0, % A_ScreenWidth + 20, % A_ScreenHeight + 20
Return
;==================================================
^w:: ;notepad fullscreen off
WinGet, hWndZ, ID, A
WinGetClass, vWinClassZ, ahk_id %hWndZ%
if vWinClassZ not in Notepad
Return
hMenuZ := hMenu%hWndZ%
if (hMenuZ = "")
Return
vPosZ := vPos%hWndZ%
WinSet, Style, +0xC00000, ahk_id %hWndZ% ;show title bar
DllCall("SetMenu", "uint", hWndZ, "uint", hMenuZ) ;show menu bar
StringSplit, vPosZ, vPosZ, `,
WinMove, ahk_id %hWnd%, , %vPosZ1%, %vPosZ2%, %vPosZ3%, %vPosZ4%
Return
#IfWinActive Notepad can now become fullscreen by key F11.