Search found 394 matches

by Patz QuickBASIC Creations
Sat Jan 27, 2007 12:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to make the computer think that a key has been pressed?
Replies: 19
Views: 53105

Well, as I wouldn't use this as a keylogger or whatever, I am still curious as to what you would have to do. I want to make a "virtual keyboard" program for my TUI.
by Patz QuickBASIC Creations
Sat Jan 27, 2007 12:47 pm
Forum: General Discussion
Topic: x + x^2=90
Replies: 3
Views: 16905

Yes, I think the quadratic formula would be the best way to solve it, since it works for ANY quadratic. PosX=(-B+SQR((B^2)-(4*A*C)))/(2*A) NegX=(-B-SQR((B^2)-(4*A*C)))/(2*A) as the quadratic formula has a plus and minus. However, if the discriminant (B^2-4AC) is negative, QB will generate an error b...
by Patz QuickBASIC Creations
Mon Jan 22, 2007 6:39 pm
Forum: News and Announcements
Topic: qbinux
Replies: 140
Views: 309023

Congratulations, Seb! <flashback>http://www.petesqbsite.com/forum/viewtopic.php?t=1100&postdays=0&postorder=asc&start=20</flashback> Great! Since you hadn't done anything (public) for the last few months so I thought you might have disappeared. I was ready to send a search party :P Anywa...
by Patz QuickBASIC Creations
Wed Jan 17, 2007 4:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to make the computer think that a key has been pressed?
Replies: 19
Views: 53105

Re: How to make the computer think that a key has been press

How can you make the computer think that a key has been pressed? You can do this in QB by using INKEY$ or ON KEY. But you should expalin in more detail what you need or want to do. Regards..... Moneo He made a post about a keylogger before... So I'm guessing he wants to make a program that gets a k...
by Patz QuickBASIC Creations
Wed Jan 17, 2007 4:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Formula to Calculate the Cube Root of a Number
Replies: 3
Views: 12296

I don't know if this works in QBASIC, but another way to do it is to raise it to the power of 1/3. Example: num = num ^ (1/3) I don't have a terminal I can test this out on, but it is a mathmatically sound way to do it. If it doesn't work, it's QB's problem. If that does work, then this is a functio...
by Patz QuickBASIC Creations
Wed Jan 17, 2007 8:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How to make the computer think that a key has been pressed?
Replies: 19
Views: 53105

I was wondering the same thing: I've been developing a virtual keyboard program, and was wondering how to do this in QB. What ABSOLUTE calls would you have to make?
by Patz QuickBASIC Creations
Fri Jan 12, 2007 7:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Splitting an Integral Number Into Two Parts
Replies: 13
Views: 22395

If you don't define a data type, doesn't QB automatically choose what data type would work best? If so, then I still don't understand the problem. But, like you said, I'm not able to run tests right now...
by Patz QuickBASIC Creations
Fri Jan 12, 2007 6:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Splitting an Integral Number Into Two Parts
Replies: 13
Views: 22395

Why not just do...

Code: Select all

Answer=1.75
DecimalNum=Answer-INT(Answer)
IntegerNum=INT(Answer)
?
by Patz QuickBASIC Creations
Tue Jan 02, 2007 1:51 pm
Forum: News and Announcements
Topic: The Qmunity (Current: season 3 episode 5)
Replies: 32
Views: 84648

I have never seen these before.... They're great! It's better to let the world know that these types of people and opinions do exist, rather than to censor and ban these people just because you don't agree with them. I would rather talk to them and find out why they feel that way rather than persecu...
by Patz QuickBASIC Creations
Mon Dec 18, 2006 3:29 pm
Forum: General Discussion
Topic: First graphic program... congratulate me...
Replies: 1
Views: 5575

First graphic program... congratulate me...

This is one of those inkblot tests that psychiatrists give you to find out if you are crazy. (If you're a programmer, then doesn't that qualify enough? :wink: ) Note: Make sure your BREAK works! (ex DOSBox under Linux doesn't!) There seems to be an error! (read below the code) RANDOMIZE TIMER SCREEN...
by Patz QuickBASIC Creations
Mon Dec 18, 2006 3:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Base conversion code - Comments, please!
Replies: 4
Views: 10092

About the negative numbers, try this: PRINT Dec&("BDYSAUD", 36) That gives you a negative number because (I'm guessing) it "overflows" the 2,147,***,*** limit. That's what I meant by that. As for getting an actual overflow error, I have found what you mean. (FromDec$) I'm try...
by Patz QuickBASIC Creations
Fri Dec 15, 2006 9:20 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Base conversion code - Comments, please!
Replies: 4
Views: 10092

One thing I did before was this: I tried to open the TI-84 Plus grpahing calculator's operating system in a hex editor, in order to see if there was something I could mess around with. What I found out is this: Instead of being written in hexadecimal like this: (as viewed as ASCII text) }╞♫ It was w...
by Patz QuickBASIC Creations
Mon Nov 27, 2006 4:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Small code question
Replies: 19
Views: 57536

I'll give in. RANDOMIZE TIMER SCREEN 13 FOR I = 1 TO 8 CIRCLE (INT(RND * 320), INT(RND * 200)), INT(RND * 20), 0 NEXT Your job is to figure out why nothing shows up, *evil laugh*. Hint: it's in the circle command. I'll give another hint - QB help is your friend. Look at the parameters, see what the...
by Patz QuickBASIC Creations
Tue Nov 21, 2006 4:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Whats your opinion?
Replies: 10
Views: 16383

Two main reasons:

1. QuickBASIC is simple enough that it can be learned easily, so expanse that you could learn something new everyday, and so powerful (for DOS) that you can do most tasks using it.
2. It's vintage :) EDIT IN REPLY TO NEK'S POST: by today's standards.
by Patz QuickBASIC Creations
Tue Nov 21, 2006 4:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone Please Help!!!!
Replies: 7
Views: 11797

1. ^ SPAM!

2. It's still technically Pete's backyard, but that would be a good warning...

3. If you can't do a project this simple, then you definitly need help.
by Patz QuickBASIC Creations
Mon Nov 20, 2006 5:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone Please Help!!!!
Replies: 7
Views: 11797

^^^^
This is why I'm glad I got to this person first. What would their image about PetesQBSite be if they saw this first?
by Patz QuickBASIC Creations
Mon Nov 20, 2006 5:48 pm
Forum: General Discussion
Topic: Encryption and XOR
Replies: 15
Views: 31201

nkk_kan wrote:well...can anyone make something like that "Enigma" code in ww2?
just a suggestion..i don't want it..but i think that's best encryption?
When I saw this I assumed the Enigma was the machine (hence WW2)
by Patz QuickBASIC Creations
Mon Nov 20, 2006 4:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone Please Help!!!!
Replies: 7
Views: 11797

I'm sorry, but you should pay more attention in your classes, as your professor would not give you an assignment that was not possible from what they have taught you. If you can't make the program, you shouldn't expect someone else to do it for you. Get extra help from your teacher. Then, you will u...
by Patz QuickBASIC Creations
Mon Nov 20, 2006 4:24 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone Please Help!!!!
Replies: 7
Views: 11797

OK, here's an unwritten law of Pete's QB forums. Please do not post homework assignments without at least showing that you've put some effort into it. It generally shows apathy towards it. Anyway, I will give you a quick layout of how the program should run. 1. Put your list of numbers into your pro...
by Patz QuickBASIC Creations
Mon Nov 20, 2006 4:16 pm
Forum: General Discussion
Topic: Encryption and XOR
Replies: 15
Views: 31201

The Enigma only encrypts letters, right? (ASCII 65-91) - Therefore, not all 256-characters can't be encrypted, as only 26 are available.

Source: http://en.wikipedia.org/wiki/Enigma_machine