10-09-2011, 06:09 PM
You have to execute zxb.py --version in the same directory zxb.py is installed, and must have write permissions on such directory.
The snippet is not working, that's right, because I forgot you have to check simultaneously KEYS in the same semirow (look at the ZX Spectrum keyboard layout).
E.g. The following will work:
To check ANY key use
MultiKeys(<key 1>) AND MultiKeys(<Key 2>)
The snippet is not working, that's right, because I forgot you have to check simultaneously KEYS in the same semirow (look at the ZX Spectrum keyboard layout).
E.g. The following will work:
Code:
#include <keys.bas>
DO
IF MultiKeys(KEYA| KEYS) THEN
PRINT AT 0, 0; "Letter A or letter S pressed (or both)"
ELSE
PRINT AT 0, 0,,
END IF
LOOP : REM Repeat forever since no condition specified
MultiKeys(<key 1>) AND MultiKeys(<Key 2>)