FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

KEYBOARD

Test for command key on launching


Here's what I do:

DIM KeyRec(7)
CALL GETKEYS(KeyRec(0))
KeyCommand% = FN BITTST(#@KeyRec(3),00)

Do this check once when you're ready, if KeyCommand%<>0 then build your prefs window.

If it is 0, continue on with what you were doing.

The other way to handle the Command Key is with some sort of EVENT test. I find this to actually be rather unreliable; I've found the test makes the CommandKey "stuck on" in some situations.

TJ Grant