CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes838downloads
InFile.txt20 linesDownload Raw Back to Doc
1 2InFiles are used to generate user input to automate operations.  The TempleOS3tour is done with an InFile.  It reminds me of a Unix pipe because StdOut of one4gets chained into StdIn of another.5 6When an InFile runs, a child task is Spawn()ed which intercepts real user input7and generates fake input.  InFiles are HolyC programs run by the child whose8stdout goes to the parent's input buffer.  Msg() can be included in an InFile to9send special keys or mouse cmds to the parent.  While an InFile is running, the10normal input gets diverted to the InFile task and can be filtered and sent back11to the parent task.  Unless you are driving functions which prompt for data, you12can probably use an #include file in place of an InFile.13 14See ::/Demo/InFile/InDir.IN.15 16Note: In("") can be used if all you need is to send ASCII characters.  It17differs from InStr().  You'll probably use In() a lot and not InStr().  With In(18), for example, you can place answers to the prompts for recompiling the Kernel19module during BootHDIns().20