home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
texed133.zip
/
English.zip
/
Macro2.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-19
|
1KB
|
26 lines
/***************************************************************************/
/* Two ways to insert text */
/* a) directly ( D2C(13) = ENTER ) */
/* b) with the clipboard */
ok = VRMethod( "MLE_1", "Insert", D2C(13)||"I was insert directly"||D2C(13) )
ok = VRMethod( "Application", "PutClipboard", "I have visited the clipboard")
ok = VRMethod( "MLE_1", "Paste" )
/***************************************************************************/
/* Send a key */
/* {Up}, {Down}, {Left}, {Right}, {Enter}, {Tab}, {Shift}, {Space}, */
/* {Home}, {Backspace} etc., and combinations like {Ctrl}s or */
/* {Alt}{F7} etc. are availible */
ok = VRMethod( "Application", "SendKeyString", MLE_1, '{Enter}' )
/***************************************************************************/
/* a) Read the context of the editor window */
/* b) Set the context of the editor window */
Inhalt = VRGet( "MLE_1", "Value" )
ok = VRSet( "MLE_1", "Value", Inhalt)