QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: krovit on February 14, 2020, 04:30:15 am
-
Hi,
I can't handle ALT-Left + Enter and ALT-Right + Enter
All ok for CTRL (Left and Right) + Enter but no for ALT.
Obviously using _KEYIT, INKEY$, _KEYDOWN...
Tips?
-
Alt+ENTER is used internally to switch to full screen. To disable the combo so you can trap it, use:
For example:
k& = KEYHIT
'waiting for alt+enter
i& = i& + 1
PRINT "Left Alt+ENTER was pressed"; i&;
"times."
j& = j& + 1
PRINT "Right Alt+ENTER was pressed"; j&;
"times."
LIMIT 30
DISPLAY
-
the sequence of my commands was incorrect!
Perfect, thank-you!