Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - alzeus

#1
Well, i can say that this problem is solved! Thanks guys for the immediate answer!
#2
Could you write an example? I typed a While, but with what condition?

I mean that i typed a While True, but the programm didnt' responded and i had to shut it down.
#3
SETSCREEN 640, 480, 1
LOADBMP "start.bmp"
PRINT "Would you like to take the red road or the yellow one?", 100, 320
PRINT "[R/Y]", 100, 340

IF KEY(19)= 1
CLEARSCREEN
LOADBMP "rpath.bmp"
ENDIF

That's it... When i say that i used a variable, i meant that the "user" would type red or yellow for himsel, but then i thought it would be simpler, just to give the choice between "r" or "y". When i tried that with a variable containing number, for example:

Input a, 100, 100
IF a=1
.....
ElSE a=2
....
ENDIF

That worked, but with the variable with characters or with hitting buttons, i cannot see any result. What i am trying to say, is that i am probably missing something about the keyboard when running a programm.
#4
Hello all, i am a new member of the GlBasic community and i want to request some help, with a curious problem i face.
I have some commands like
If key(11) = 1
.....
....
endif

and when i run the program, not only it doesn't recognize typing r, but also no button at all! In other programms, i face a stranger problem:
when i type something in the programm, i see other letters. For example, if i type "r", i see "q"... What can i do to fix it? The only thing i can input to my variables is numbers, but it's not enough for me...

I have search other problems with keyboard at the forum, but the other guy typed KEY(08) instead of KEY(8), so it's not satisfying for me