01-20-2015, 03:53 PM
ardentcrest Wrote:Any one know how to do something like this
I'm looking to use inkey$ to create a line of text while the program is doing some other things Ie
LOOP
DO THING 1
INKEY(text string)
DO THING 2
IF ENTER PRINT(text String)
GOTO LOOP
any help on this
Yes, use the IN (read port) which does not interrupt.
There is a library already for this.
Code:
#include <keys.bas>
if MultiKeys(KEYENTER) then
PRINT "Enter pressed"
end if
Code:
#include <keys.bas>
if MultiKeys(KEYO | KEYZ) then
PRINT "Key O, Key Z or both pressed" ' letter case does not matter!
end if