Category : Files from Magazines
Archive   : VOL10N18.ZIP
Filename : MYSHELL.1

 
Output of file : MYSHELL.1 contained in archive : VOL10N18.ZIP
Declare Function FindWindow Lib "user"(dummy As Long, title$) \
As Integer

Declare Function GetFocus Lib "user" As Integer

Declare Sub PostMessageStr Lib "user"(hWnd As Integer, \
wMsg As Integer, wParam As Integer, lParam$) Alias "PostMessage"

Sub MAIN
Shell "notepad"
notepad = FindWindow(0, "Notepad - (untitled)")
editctrl = GetFocus
wmSetText = 12
PostMessageStr notepad, wmSetText, 0, "This is a test"
PostMessageStr editctrl, wmSetText, 0, \
"This is some text to appear in Notepad" + Chr$(13) + Chr$(10)
End Sub


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

  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: http://www.os2museum.com/wp/mtswslnk/