WaitNoKey
WaitNoKey
 
Parameters: NONE
Returns: NONE
 

      WaitNoKey will halt your program until a NO key is being pressed.

      This is sometimes needed to stop your program for running through various Waitkey statements. This occurs as while user might only just 'tap' the key for a few milliseconds, but this is more than enough time for the program to continue on and fall through various wait key statements bellow.



FACTS:


      * None



Mini Tutorial:


      This program displays two messages to the screen. Between each message it waits for the user to press a key. It uses "WaitNoKey" between the two messages to ensure the first key press can't be held down and thus fall though the allow the user to miss the second message.



  
  
; Display a message to the screen
  Print "Press A Key To Continue"
  Sync
; Wait key to be pressed
  WaitKey
  
; Wait until NO keys are pressed
  WaitNoKey
  
; Display a message to the screen
  Print "Press A Key To End Program"
  Sync
; Wait key to be pressed
  WaitKey
  
  



 
Related Info: FlushKeys | Wait | WaitALLinput | Waitkey | WaitMouse | WaitNOinput :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com