News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Overriding the break key

Started by kevin, September 28, 2007, 06:05:48 PM

Previous topic - Next topic

kevin

 This sample shows how you can trap when the user wants to 'break' out of your program.

PlayBASIC Code: [Select]
Setfps 60
Breakkey off

repeat
cls 0
print "Press ESC or click close gadget [X] to exit"

sync
until KeyState(1)=true or getscreenclose()=true





   Read more:  PlayBASIC Documentation - INPUT COMMANDS