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.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play wav file in the background without a window on the forground Rudy M 12 1,166 09-18-2025, 07:08 PM
Last Post: Pete
  Using VarPtr in Play staement PhilOfPerth 3 819 12-06-2024, 12:26 PM
Last Post: grymmjack

Forum Jump:


Users browsing this thread: 1 Guest(s)