Gösta,
look for SUB GWInkey(lInstat AS LONG, sKey$, keyshift AS INTEGER) in GrButtons.inc :
http://www.powerbasic.com/support/pb...ad.php?t=40130
You create and attach a GRAPHIC WINDOW and then call GWInkey().
When lInstat is true, the last key stroke can be read from sKey$.
Independent of that keyshift returns the status of the Shift/Ctrl/Alt keys.
All those variables are compatible with INSTAT, INKEY$ and INSHIFT of PB/CC.
The routine detects more keys than the standard GRAPHIC INKEY such as TAB, Alt Fxx etc. (except keypad keys).
Does this come close to what you meant?
Best regards,
Gert.
X
Leave a comment: