home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxhll.zip
/
HOSTOVVM.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-10-18
|
1KB
|
59 lines
/* #include <HostOVVM.rex> */
/**
*** ┌──────────────────────────────────────────────────────────────────────┐
*** │ Host Routines for OfficeVision/VM │
*** └──────────────────────────────────────────────────────────────────────┘
**/
HostOVVMPageDown: procedure expose Screen. Host.
/**
*** This will page down to the next screen and refresh the Screen.
*** stem variable with the new screen.
**/
code = hllapi('Sendkey', '@a')
rc = hllapi('Wait')
call HostScreenToStem
return
HostOVVMUploadNote: procedure expose MsgQ.
/**
*** This will upload a file to an OV/VM note.
**/
parse arg HostSession file
call HostLoadUploadFile file
/* Upload the information to the host */
Host. = ''
Host.Session = HostSession
call HapiLoadFunctions
call HapiConnect
call HostGetScreenSize
call HostGetCursorPos
LastRow = Screen.Rows - 2
do i = 1 to Upload.0
if Upload.i = '' then /* Space past blank lines */
y = y + 1
else
code = hllapi('Sendkey', Upload.i)
if y >= LastRow then
call HostOVVMPageDown
code = hllapi('Sendkey', "@T")
call HostGetCursorPos
end /* do */
call HapiDisconnect
return