Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Silent Pause in PLAY being skipped
#10
(06-17-2023, 02:25 PM)GareBear Wrote: Take a look at line 1 and print how to exit. Some people need literal instructions. I used your code to figure it out. The ' _KeyHit <> 27' told me that you used the 'Esc' key. I have not seen this code before. I figured '_KeyHit' means something like a key pressed. '<>' other than 27. 27 is ascii for 'Esc'. I hope I did not over do the explaining on my part. I like what you did.

_Keyhit is alternate to INKEY$ returning a number as opposed to letter(s).

The QB64 IDE has handy Tool on main menu, 2nd down from Tool: "Insert Quick Keycode" which will insert keycode into your code with very next keypress combo you make. Further these numbers are positive of negative depending if you just pressed a key and are still holding down (better than Inkey$) or released (like Inkey$).

There is also a _KeyDown(Keynumber) option that works great for keypress combinations.
Shift = _Keydown(shiftKeyNumber) ' shift is true or false
Great for picking up Alt, Ctrl, Shift combos with regualar letter keys probably explained better in Wiki.
b = b + ...
Reply


Messages In This Thread
RE: Silent Pause in PLAY being skipped - by a740g - 06-17-2023, 01:24 AM
RE: Silent Pause in PLAY being skipped - by a740g - 06-17-2023, 10:12 AM
RE: Silent Pause in PLAY being skipped - by bplus - 06-17-2023, 03:08 PM
RE: Silent Pause in PLAY being skipped - by bplus - 06-17-2023, 03:57 PM



Users browsing this thread: 14 Guest(s)