Files
TempleOS-Rijn/LT/Compiler/Renum.AUZ
T
2018-09-08 21:45:20 +02:00

27 lines
825 B
Plaintext

/* To run this, do a directory, right click on
this file's name and select "AutoFile".
Or, type $LK,"AutoFile","MN:AutoFile"$(filename);
See $LK,"AutoFile","FF:::/LT/Doc/OSGlossary.GLZ,AutoFile"$ in the glossary for more info.
This autofile will renumber the defines in
Demo3.TXZ. Test it by numbering a few wrong
and running this demo.
*/
U1 i;
PutS("Edit(\"CmpDefs.HPZ\");\r");
//Go to start of file
Msg(MSG_KEY_DOWN,0,SC_CURSOR_UP|SCF_CTRL);
for (i=0;i<=0x8A;i++) {
PrintF("%c0x%c",6,CH_ESC); //ctrl F
Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT);
Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT);
Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT);
Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT);
Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT);
PrintF("%c%c%c",CH_BACKSPACE,CH_BACKSPACE,CH_BACKSPACE);
PrintF("%03X",i);
Sleep(5);
}