Hi all, I need some help in writing a small macro for TSE/TSE Pro. (If
it can be converted into a QEdit/TSEJR macro with a few modifications,
that would be all the better too, but I kinda doubt it.) The purpose of
the macro is to calc a percentage based on the current position in the
file. Following is my pseudo code for the macro, but I just don't have
the experience with SAL yet to convert it to a working macro, but want
to learn. Any help would be greatly appreciated.
My pseudo code:
get current line number, and store in var1;
mark current position in file;
goto end of file;
get line number, and store in var2;
return to place marker;
divide var1 by var2;
output answer to the screen;
// preferably on status line, I am interested in just the integer
// portion. e.g. "NN%"
get rid of output on screen after a key is pressed, but don't prompt
for the keypress;
I would like the macro to calc the current position in the file only
when requested. Additionally, is there a way for the percent outputted to
the screen to be in a certain color? (e.g. black on green) This way I
can adapt or modify the macro and/or my screen reader to speak the
output automatically when it pops up on the screen. This is also why the
macro should calc only when requested. If anyone has any better ideas/
algorithms please let me know!
*any help with this macro would be greatly appreciated! Thanks.
Regards, Jack
FIDO: Jack.Daniels at 1:275/429
Internet: jterm9@infi.net
** 4DOS 5.51, TSE 2.0, {COMMO} 6.5, and Blue Wave 2.2 **
Powerful, speech friendly, and registered!
... Murphy's First Corollary: Nothing is as easy as it looks.
--- Blue Wave/Max v2.20
---------------
* Origin: HandiNet B B S Virginia Beach, VA (804)496-3320 (1:275/429)
|