Simulate input/Keyboard: Difference between revisions
m
→{{header|Applesoft BASIC}}
(Applesoft BASIC) |
|||
Line 43:
=={{header|BASIC}}==
==={{header|Applesoft BASIC}}===
EXEC KB executes the text file KB from disk as if you had typed everything that is in the KB text file. MON I will MONitor Input from disk.
<lang basic> 100 REM SIMULATE KEYBORD INPUT
110 GOSUB 170"OPEN&WRITE KB
Line 54:
180 M$ = CHR$ (13):O$ = "OPEN"
190 F$ = "KB":A$ = F$ + M$ + D$
200 PRINT D$"
210 PRINT A$C$A$"DELETE"A$O
220 PRINT A$"WRITE"F$: RETURN </lang>
{{Out}}
|