03-14-2006, 07:21 PM
i'd like to create a "hot key" menu in QB, i've tryed, but I could not figure how to do it.....could someone plz tell me how to do it?
color=darkred]Imperishable flames are mine to controll![/color]
Need help with menu in QBasic
|
03-14-2006, 07:21 PM
i'd like to create a "hot key" menu in QB, i've tryed, but I could not figure how to do it.....could someone plz tell me how to do it?
color=darkred]Imperishable flames are mine to controll![/color]
03-14-2006, 09:47 PM
i've tryed some more.....found one possible way.....it has one great issue thougth, it doesen't seem to respond at my first click, i have to click many times...
CLS PRINT "please select one of the numbers" PRINT "1...right" PRINT "2...this works" PRINT "3...yahoo" DO IF INKEY$ = CHR$(49) THEN GOTO blah IF INKEY$ = CHR$(50) THEN GOTO blah1 IF INKEY$ = CHR$(51) THEN GOTO blah2 LOOP blah: CLS PRINT "right!" END blah1: CLS PRINT "this works!" END blah2: CLS PRINT "YAHOO!" END anyone got a better way?
color=darkred]Imperishable flames are mine to controll![/color]
03-14-2006, 10:23 PM
Code: Dim ky As String
03-14-2006, 11:27 PM
it works, thanks alot mate
color=darkred]Imperishable flames are mine to controll![/color]
03-14-2006, 11:57 PM
anytime
03-15-2006, 05:48 AM
Nice work, cha0s...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
03-15-2006, 06:08 PM
now a new problem came up, from the menu I start a Game, it uses SCREEN 13, when the game exits, i've set it to go back to the menu...in the menu I have COLOR 5, 0.....it says "illigeal function call" what is wrong?
color=darkred]Imperishable flames are mine to controll![/color]
03-15-2006, 06:31 PM
You can't set a background colour in mode 13h. Just go back to text mode with
Code: SCREEN 0: WIDTH 80,25 before attempting to change colour/print/anything.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
03-16-2006, 03:41 AM
I am scared.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest. |
« Next Oldest | Next Newest »
|