Announcement

Collapse

Forum Guidelines

This forum is for finished source code that is working properly. If you have questions about this or any other source code, please post it in one of the Discussion Forums, not here.
See more
See less

Inkey$ replacement for PBWin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gert Voland
    replied
    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.

    Leave a comment:


  • Gösta H. Lovgren-2
    started a topic Inkey$ replacement for PBWin

    Inkey$ replacement for PBWin

    Forget it, was close but no cigar {oh well}
    Last edited by Gösta H. Lovgren-2; 25 Apr 2009, 10:20 PM. Reason: Incomplete testing with Real men.
Working...
X