Light bar tutor by : Grifta[tms]

Light bars aren't to hard to do with PCB you need to have a standard input
routine ie.

:input1
if (!(instr1 == "")) gosub parsein
instr1 = inkey()
goto input1

and a parsing routine ie.

:parsein
if ((((((instr1 == "DOWN"))) || ((instr1 == "RIGHT")) && ((parsnum1 == 1))))) goto apply
if ((((((instr1 == "UP"))) || ((instr1 == "LEFT")) && ((parsnum1 == 1))))) goto leave
if ((((instr1 == chr(13))) && ((parsnum1 == 1)))) goto loginproc

these are just basic examples, the amount of stuff you can do is unlimited as
long as you have the knowledge on how to code it... if you do an inkey
statement certain keys return certain strings ie. the left key.
here are some of the returns for keys.
Ŀ
 key name          Returns   
Ĵ
 Left arrow key    LEFT      
 Right arrow key   RIGHT     
 Up arrow key      UP        
 Down arrow key    DOWN      
 Insert key        INS       
 Delete key        DEL       
 Home key          HOME      
 End key           END       
 Page Up Key       PGUP      
 Page Down Key     PGDN      
 Enter Key         chr(13)   
 Escape Key        chr(27)   

The chr(##) are because I don't think PCB handles those well so use the ASCII
Charachters... they arent strings so don't put ""'s around them.
It's pretty simple if you have some imagination so... have fun an stuff....
I might update the list of returns if people ask me too...

Send any questions or comments to : Grifter@icnet.net and I'll get back to you.

 
