|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: TextEditor Automation
It opens up TextPad as the front-most window, in whatever state it would
have opened anyway. So if the TextPad window was maximized the last
time it was shut down, it will be maximized when run by tp.ado.
Another route would be to use a scripting language (I like AutoIt) to
invoke and maximize your text editor.
--NW
Nick Cox wrote:
Nick -> Nick: But _maximized_?
Nick Winter
I use the following program to automate opening up my editor (TextPad)
with a specified file to edit. Presumably code from this could be
modified to simply open up the editor automatically.
This program lets me type "tp myfile.ado" to open up -myfile.ado- in the
editor. The -findfile- line means that I can load up an ado file even
if I'm not in its directory, as long as its along the ado path.
--Nick Winter
program tp
version 9.1
qui findfile `1'
local fn `r(fn)'
local fn : subinstr local fn "/" "\" , all
winexec "c:\program files\textpad 4\textpad.exe" "`r(fn)'"
end
Martin Weiss
I was wondering whether it is possible to have the profile.do open
your
favorite texteditor in a maximized window automatically.
http://fmwww.bc.edu/repec/bocode/t/textEditors.html gives advice on
how
to
handle editors to edit do-files. I cannot find a section on passing
command
line arguments to the winexec command to have it open the editor
maximized,
though. Any ideas?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--
--------------------------------------------------------------
Nicholas Winter 434.924.6994 t
Assistant Professor 434.924.3359 f
Department of Politics [email protected] e
University of Virginia faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/