Forget it, was close but no cigar {oh well}
X
-
Inkey$ replacement for PBWin
It's a pretty day. I hope you enjoy it.
Gösta
My Ego Site: http://www.SwedesDock.comPB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.htmlJWAM: (Quit Smoking): http://www.SwedesDock.com/smokingLDN - A Miracle Drug: http://www.SwedesDock.com/LDN/Tags: None
-
Gösta,
look for SUB GWInkey(lInstat AS LONG, sKey$, keyshift AS INTEGER) in GrButtons.inc :
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.Gert Voland
Comment