faking_20keyboard_20input
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
faking_20keyboard_20input [2018/03/31 13:19] – external edit 127.0.0.1 | faking_20keyboard_20input [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Faking keyboard input===== | =====Faking keyboard input===== | ||
- | //by Richard Russell, September 2007//\\ \\ In special circumstances you may wish to ' | + | //by Richard Russell, September 2007//\\ \\ In special circumstances you may wish to ' |
+ | |||
+ | <code bb4w> | ||
DEF PROCfake(C%) : LOCAL V% | DEF PROCfake(C%) : LOCAL V% | ||
SYS " | SYS " | ||
Line 13: | Line 15: | ||
IF V% AND &100 SYS " | IF V% AND &100 SYS " | ||
ENDPROC | ENDPROC | ||
- | You could for example send an entire string by calling the procedure for each character:\\ \\ | + | </ |
+ | |||
+ | You could for example send an entire string by calling the procedure for each character: | ||
+ | |||
+ | <code bb4w> | ||
test$ = "Hello World!" | test$ = "Hello World!" | ||
FOR I% = 1 TO LEN(test$) | FOR I% = 1 TO LEN(test$) | ||
PROCfake(ASC MID$(test$ ,I%)) | PROCfake(ASC MID$(test$ ,I%)) | ||
NEXT | NEXT | ||
+ | </ | ||
+ | |||
Note that the above code assumes that when it is run //**none of the ' | Note that the above code assumes that when it is run //**none of the ' |
faking_20keyboard_20input.1522502359.txt.gz · Last modified: 2024/01/05 00:17 (external edit)