Category : Files from Magazines
Archive   : VOL10N18.ZIP
Filename : NOTEPAD

Output of file : NOTEPAD contained in archive : VOL10N18.ZIP
REM Notepad -- demonstrates Shell and SendKeys

name$ = "tmp.tmp"
If Files$(name$) <> "" Then ' If file already exists...
QuestionIcon = 32
OkCancel = 1
Ok = -1
' Elsewhere in article we've used the MsgBox statement.
' The line above uses the MsgBox() function, which returns
' the magic number of the button the user pushed.
If MsgBox("Delete " + name$, QuestionIcon + OkCancel) = Ok Then
On Error Goto ErrorTrap ' watch for strange WinWord behavior
Kill name$ ' if user says ok, then delete it
On Error Goto 0 ' reset normal error processing
Goto done ' otherwise do nothing
End If
End If
On Error Goto done
s$ = InputBox$("Type some stuff to send to Notepad")
Shell "notepad" ' run Notepad
Wait = -1 ' wait for Notepad to process keystrokes
SendKeys s$ + "~", Wait ' send the string of text
SendKeys "%FA" + name$ + "~", Wait ' Alt-F A: File Save As...
SendKeys "%FX", Wait ' Alt-F X: File Exit
Goto done
MsgBox "WinWord has problems deleting " + name$ + "." + \
"Please close the file, clear your clipboard, and try again."
End Sub

  3 Responses to “Category : Files from Magazines
Archive   : VOL10N18.ZIP
Filename : NOTEPAD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: