---------------------------------- A Pyrosoft Informational TEXT file ---------------------------------- End_User- Turn WordWrap on and Full size your screen And now, Pyrosoft presents.... \ / \ / \ _____ / \ \ |\ / | | \ | | \/ | | \ | |/ \ | | \| / | \ | \ / \ | \ | --- / \ | \| / \ / \ ******************************************* DISABLE ON KEY BREAK FOR THE 68K CALCULATOR ------------------------------------------- Ok. You have downloaded a couple of BASIC password programs. You have viewed their code. You either saw a bunch of BASIC-Assembly hex or you saw a giant program which was made mostly of user friendly interface junk. You tried to find out how it disabled the ON key, but couldnt find it. Here is a guide to solve your problems. It teaches you how to use the simple lines of code in your programs to disable the one defect in BASIC security programs. ---------- The BASICS ---------- Format: Lbl loopbacktohere Try // What code do you want the on key disabled in? Else //If there is an error loop back to loopbacktohere Goto loopbacktohere EndTry /*example*/ //Begin Lbl Z Try Prompt A Else Goto Z EndTry //End This is The basic program example. The Try-EndTry block is the main heart of the program. It 'Tries' to exucute the code Prompt A. If an error occurs (ON-BREAK is an error), Lbl Z is where the program loops back to when an error has occurred. If you were trying to prompt for a password, the user couldnt keep pressing on. It wouldnt work because it is disabled and would keep asking him/her for a password until they entered one. To make sure that they couldnt break anywhere in the program, you could put the the entire program in many Try blocks. For example, a password protection program: (Not good, just an example) pass() Prgm Local pass,p Disp "Pyrosoft PassProtocol" Disp "" Disp "Enter pass (any characters)" InputStr "Password: ",pass ClrIO Lbl Z Try Loop Disp "PyroProtect.Status=secured" InputStr "Enter Password: ",p If p=pass:Exit EndLoop Else ClrErr Goto Z EndTry EndPrgm The ClrErr is to clear the current error flag. Note: You can exit by pressing ON really, really fast. With the Try block code so small in this prog, its virtually impossible. However, the longer the calc takes to go through the block, the easier it is to ON break. Happy Programming! Contact me at: ------------- email::fy5kbug@msn.com AIM::PyroClasticAsh