Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notepad.exe (Control Startup Parameters)

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
Is there a way of controlling notepad.exe via the registry
to startup minimized or set the size of the opening screen(eg width/depth), permanently on this computer.

eg If i right click on a web page, notepad opens the html source, i need it to open as a very small window.


Appreciate any help
 
Try an application launcher. There are programs where you can define the window size - sorry, don't remember the name now
 
Thanks, Will have a look at you idea.
Appreciate your help
 
Open Notepad and drag the top, right, bottom and left sides to make a window size you want. Then use File, exit to close

It should re-open at the size you set on subsequent occasions.
 
You could create a .REG file that runs when Windows starts or when users logon.

You set the window size and position in HKCU\Software\Microsoft\Notepad. You need to edit four values which determine the top left corner position and window size.

Let's say you want a 400 x 300 window that is centered on the desktop, and the display size is 1024 x 768. You would set the values:
iWindowPosDX to 400 decimal (window width)
iWindowPosDY to 300 decimal (window height)
iWindowPosX to 312 decimal (left side of window)
iWindowPosY to 234 decimal (top of window)

The numbers for top left corner position may not be obvious... the 312 number is (1024-400)/2, and the 234 number is (768-300)/2.
 
bcastner, Thanks, have tried this and i works fine., appreciate your help.

Frank4d , Thanks , this method also worked well.

Appreciate the help offered, there are sometimes several ways to solve a problem. !!!!!
 
that was to easy bcastner ;-)
But don't forget that this doesn't work with the maximize-button.
 
No, it does not work with the Maximize button. Nor does it work if you click on "X" to close the Window. Manually drag the borders and either hold down the shift button and "X" to close, or use File, Exit.

This by the way works on most Windowed applications.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top