[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AW: RE: TextEditor Automation

From   "Martin Weiss" <>
To   <>
Subject   st: AW: RE: TextEditor Automation
Date   Sun, 3 Feb 2008 20:26:56 +0100

Just found out - admittedly thru sheer luck - that it is possible to have
the window maximized from the start, employing the link files on the

!start /max C:\Users\Martin\Desktop\Notepad.lnk

But careful, everything here rides on the correct specification of the
relevant desktop: on my system, there is a public desktop and a special one
for the user, so check for the location of the .lnk-file in question...

Martin Weiss

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen

Fon: 0049-7071-2978184




-----Ursprüngliche Nachricht-----
[] Im Auftrag von Nick Cox
Gesendet: Sonntag, 3. Februar 2008 18:31
Betreff: st: RE: TextEditor Automation

-winexec- is for MS Windows only. I'll not attempt discussion for Unix
flavours, including Macintosh. 

If -winexec- has any options of its own, they are not documented. But it
could hardly have options of its own, as I understand it, as whatever
follows the command name "winexec" must be for the consumption of the
operating system, including first the name of the program you want to
run. That could include options of an editor, in this case, and if they
include maximising the window size, you may be where you want to be. 

That said, this seems the wrong way round to me. The tacit philosophy
behind -winexec- is that you are in a Stata session, and you want to do
something on the side, in this case editing, usually only for part of a
Stata session. Whenever I run -winexec- the window opening is fairly
small as a signal of which partner is dominant. Of course, I can make it
bigger in a trice; that's what you want to automate. 

If your idea is that you are in an editor session and want to run Stata
on the side, then so be it, and the question is then whether and how you
can run Stata from your editor. 

I guess if this were widely desired, StataCorp could look at adding a
settable preference for such windows to be maximised, that is, if one
doesn't exist already. Don't be surprised if they prefer not to do this.


Martin Weiss

I was wondering whether it is possible to have the open your
favorite texteditor in a maximized window automatically. gives advice on how
handle editors to edit do-files. I cannot find a section on passing
line arguments to the winexec command to have it open the editor
though. Any ideas?

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index