Qbasic Download 64 Bit

0 views
Skip to first unread message

Leida Gamage

unread,
Jul 22, 2024, 10:13:05 AM7/22/24
to inanfounci

hi, i had tried to use dosbox for an old accts program using btrieve and i had disaster..
vdos record/file locking seems flawless - ty..
there are some modules done in qbasic 4.5 and although they do work too i cant get qbasic
to run...it loads ok but seems to lose the keyboard..
thanks for any help..

the exe modules done in qbasic run perfect..
its the actual qbasic editor that loads ok but loses the keyboard..
at the vdos prompt i do qb.exe - loads ok no errors but i have to exit the window
because i cant input anything...even esc..

qbasic download 64 bit


Download · https://urlin.us/2zE0la



It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. RE: How do you use the arrow keys? qbasicking (Programmer)26 Nov 01 22:25to miggyd:

The way I have posted does NOT use letters. The way I have typed it in uses the arrow keys BETWEEN the alphabetical keypad and the numeric one. I don't know where you got the idea that I was using letters. Type up a program using my code your self and hit the arrors, they will work!

Try this little code:

CLS
PRINT "Press the space bar to exit program"
DO
WHILE a$ = ""
a$ = INKEY$
WEND
IF RIGHT$(a$,1) = "K" THEN PRINT "left arrow"
IF RIGHT$(a$,1) = "M" THEN PRINT "right arrow"
IF RIGHT$(a$,1) = "H" THEN PRINT "up arrow"
IF RIGHT$(a$,1) = "P" THEN PRINT "down arrow"
IF a$ = " " THEN END
LOOP


The keys used in my code are shown by asterisks here

BCKSPACE INSERT HOME PAGEUP NUMLOCK /
DELETE END PAGEDN 7 8
ENTER 4 5
SHIFT \ * 1 2
CRTL * * * 0 RE: How do you use the arrow keys? MiggyD (Programmer)27 Nov 01 03:59qbasicking:

If you see the original posting, the A$ is used solitarily which indicates that 'Lewis Green' is expecting a single byte character returned instead of a two-byte return--which is what 'GodofCuboids' is showing.

Although, I do not program for games (mostly business applications for antiquated systems--dare I say "cheap bosses"). I'd have to say that using RIGHT$ is very cleaver.

However, if the CAPS LOCK is ON or the SHIFT key(s) is/are pressed then someone else--let us say in dual player mode for example--can press either a 'k', 'm', 'h', or a 'p'. It will be interpreted as thought it was from the extended keys. Which is not good for the user at the arrow keys. So that is why I said your code is character based.

What 'GodofCuboids' has indicated is correct. A two-byte return is needed to verify that the actual scan code being returned IS from the extend arrow keys. Not simply a fluke that the CAPS LOCK or the SHIFT key was pressed.

Test it out. Use the arrow keys then press either SHIFT key or have the CAPS LOCK set to ON. You'll see.

--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. RE: How do you use the arrow keys? qbasicking (Programmer)27 Nov 01 15:45I see now what you mean about the two-byte return, but I have to disagree with you about the CAPS and Shift. The code going into the computer is always capitaized, no matter what, so any of the locks (CAPS NUM SCROLL) can be on and my code will still work.
I did figure out, however that if k,m,h,p is typed in CAPS they will produce misleading results.

if he uses the code that godofcuboids posts, it would work, but all the the locks would have to be off, unless he programs the scan codes in for all of them. RE: How do you use the arrow keys? MiggyD (Programmer)28 Nov 01 17:08TO qbasicking:

Here, try this with CAPS & SHIFT keys:

'***Starts Here***
CLS

PRINT "Press the space bar to exit program"

DO

WHILE A$ = ""
A$ = INKEY$
WEND

IF A$ = CHR$(0) + CHR$(75) THEN PRINT "left arrow"
IF A$ = CHR$(0) + CHR$(77) THEN PRINT "right arrow"
IF A$ = CHR$(0) + CHR$(72) THEN PRINT "up arrow"
IF A$ = CHR$(0) + CHR$(80) THEN PRINT "down arrow"
IF A$ = " " THEN END
A$ = ""

LOOP


'***Ends Here***

--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. RE: How do you use the arrow keys? pebe (TechnicalUser)28 Nov 01 17:49I don't know what you two are arguing about. For Lewis Green's application you are both right. But for numerous other applications, qbasicking, you could come to grief with your version. RE: How do you use the arrow keys? MiggyD (Programmer)29 Nov 01 19:48Have you read the entire post?

We're not "arguing". We're discussing coding possibilities. As you know, there is usually an alternative way of getting something to do what you want it to do.

So, we're just stating opinions and looking at possibilities of pros and cons. But, we're still having a converstation. It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. RE: How do you use the arrow keys? qbasicking (Programmer)29 Nov 01 21:24miggyd:
good show, I was thinking of the KEY statment when I said that you would have to program all of the keys for all of the locks.
pebe:
to reiterate what miggyd said, this is not an arguement, this is merely discussion of the best way to do something among programmers.

Lewis Green: For your program both miggyd's code and mine would work fine, it is up to you to decide. If you are using a slower computer though, i suggest using my code, for having used Miggyd's code on a 486 machine, i find that it is slower. If you are using a faster computer, use Miggyd's code, for if you hit a capital k,m,h,p using mine, it will give you the same reaction of the arrow keys, but for a simple qb game I don't know why use would be using the alphabetical keyboard. RE: How do you use the arrow keys? MiggyD (Programmer)29 Nov 01 21:41Mr. Green:

I agree with qbasicking, on an older system, use his code-it's much less time consuming on the system when it has to compare just one byte instead of two.

If however, you later-on provide for a second player, you may have to accept the consequences of slowing down the game play and use the code that 'GodofCuboids' has offered.

--MiggyD

PS - QbasicKing, I still think your "quick" comparison is ingenious--probably cuz I hadn't thought of it before.
It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. RE: How do you use the arrow keys? pebe (TechnicalUser)30 Nov 01 17:21Sorry if I offended anybody. If so I'll withdraw my flippant comment about an argument. And YES MiggyD, I did read the entire post!

My point was really to emphasise to Lewis Green and others who may not have your experience, that what appear to be shortcuts are not always the best invention since sliced bread. They can and do cause problems if they are applied ad-lib to other programs without realising their limitations.

In this 'discussion' I cannot see why, after getting INKEY$ into a$, interpreting a keypress as IF RIGHT$(a$,1) = "K" .... is any more compact in code than IF a$= CHR$(0) + CHR$(75)...... So why invite trouble?

To Lewis Green I would say, go with MiggyD's way - the right way!

RE: How do you use the arrow keys? MiggyD (Programmer)2 Dec 01 04:08No offence taken. I was bewildered as to what was said that made you believed there was an argument here. I understand your point now, and apologize if my question irritated you.

I too get upset when someone asks "how to fix this scrambled egg code (that was copied for 100's of other programs--none of which is my own work) so that it'll work for me so that I can claim credit and yet know nothing?"

My only suggestion to something such as this is to red-flag it (as I have in the past) OR just ignor it (done this often too).

--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end. googletag.cmd.push(function() googletag.display('div-gpt-ad-1406030581151-2'); ); Red Flag This PostPlease let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.
CancelRed Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

It seems that the qbasic.exe file is not in the directory you are mounting. Either find the qbasic.exe file and save it in that directory (in this case your qbprogs directory) or following the below steps.

That GORILLAS.BAS clone looks awesome! Do NIBBLES.BAS next! I did see a couple of folks made snake games but an actual clone of the colors/sounds of the qbasic one would be awesome. Can't wait to play it when you're done lol. Trying to imitate the explosion sounds too? I used to get a huge kick out of throwing bananas way in the air and seeing them blow up inside a building because the downwards velocity had become so huge lol.

760c119bf3
Reply all
Reply to author
Forward
0 new messages