Anonymous user
Simulate input/Keyboard: Difference between revisions
→{{header|REXX}}: added the REXX language.
No edit summary |
(→{{header|REXX}}: added the REXX language.) |
||
Line 450:
(send canvas simulate-key (new key-event% (key-code #\k))) ; Sends the simulated key press (with a key-event% instance)
;outputs k</lang>
=={{header|REXX}}==
{{works with|PC/REXX}}
{{works with|Personal REXX}}
Note: this REXX program ''only'' works with the above two REXXes.
<lang rexx>/*REXX pgm shows how to use the REXX/PC PRESS cmd to simulate keyboard input.*/
call press 'This text will be put into a buffer as if it came from the keyboard'
/* [↑] text will be available for any program to use (including DOS).*/
/*stick a fork in it, we're all done. */</lang><br><br>
=={{header|Scala}}==
|