home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
q
/
qedtips1.zip
/
TECH3.MSG
< prev
next >
Wrap
Text File
|
1992-06-30
|
3KB
|
75 lines
A QEdit Tip from the SemWare Technical Support Staff
.. QEdit in 43/50 Line Mode on Startup ..
If you want to have QEdit start-up in 43/50 line mode, you can
call QEdit via a batch file, and have QEdit execute a macro on
start-up.
EXAMPLE:
1) Using QEdit, create a macro file called file43.txt
containing the following macro:
f10 MacroBegin SetEGA43
2) Using QEdit, create a macro file called nofile43.txt
containing the following macro:
f10 MacroBegin SetEGA43 Quit DelLine
The DelLine will delete the current filename from the
file to edit prompt box.
3) After you have created file43.txt and nofile43.txt, you
need to run Qmac.exe and create the binary macro file that
QEdit uses. If we call the binary macro file file43.mac,
then running Qmac at the Dos prompt using the following
format:
Qmac file43.mac file43.txt
It will create file43.mac from the file43.txt file.
Repeat the process to create nofile43.mac using the following
format:
Qmac nofile43.mac nofile43.txt
4) Create a batch file called Q43.bat with the following entries:
@Echo off
if "%1" == "" goto NOFILE
C:\QEDIT\Q.exe -eC:\QEDIT\file43.mac %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:NOFILE
C:\QEDIT\Q.exe nul -eC:\QEDIT\nofile43.mac
:END
*NOTE* Use the path to your copy of Q.exe and file43.mac
Now when your run Q43.bat.... If no parameters are passed to
Q43.bat, QEdit will load file "nul" and execute the first and
only macro contained in nofile43.mac, which will set the screen
into 43/50 line mode and then quit file "nul". You will now be in
a "file(s) to edit" prompt box.
If parameters are passed to Q43.bat... QEdit will load the
first file specified on the command line and execute the first
and only macro in file43.mac, which will set the screen into
43/50 line mode.
*PLEASE NOTE*
If you don't supply filenames to the batch file, you will
need to make sure that you have the following option set to YES
(our default) within the General Options of the Qconfig.exe
program.
Should PQuit, Exit and File return to the edit file prompt (Y/N)? Y
If this is set to NO and you run Q43.bat with no filenames,
you will be back at a Dos prompt as soon as you run Q43.bat.
Matthew Giles and Kyle Watkins (SemWare Technical Support)