| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rexx - Inkey$ ? |
Craig Morrison wrote in a message to Jerry McBride:
JM> Anyway, I have the .dll for freq/download if you desire a
JM> look-see... includes c source, under the name INKEY.ZIP. I
JM> have to warn you before hand, that this .dll has a small bug
JM> in it, that doesn't clear the "keyready" variable. To do so,
JM> you must first unload the function, then reload it...
CM> Ummm, have ya tried "getting" the key that is waiting? When you
CM> use the "see if there is a key waiting" function it doesn't
CM> remove the key, all it does is check to see if there is a key
CM> waiting.
Craig, I have a rexx script that supplies the desired inkey$ function. It
came from BILL PARKER as a demo proggy. Here's the rexx that he tossed my
way. Works great!
/* sit in a loop waiting for a key to be pressed */
call RxFuncAdd 'SysGetKey', 'RexxUtil', 'SysGetKey'
i = 0
do while key 'Q' & key 'q'
i = i + 1
key = InKey()
if key '' then say "at iteration" i "key pressed
was" key
end
call RxFuncDrop 'SysGetKey'
exit
InKey: procedure
if CHARS() = 0 then return ''
return SysGetKey('NOECHO')
Jerry McBride
--- timEd/2 1.01+
* Origin: MoDem_Corner_609-877-0836_EdgeWater_Park_NJ_USA_V.34 (1:266/28)SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955 SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809 @PATH: 266/28 400 100 505 3615/50 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.