home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1991
/
18
/
myshell.1
< prev
next >
Wrap
Text File
|
1991-09-24
|
578b
|
18 lines
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