Search found 155 matches

by Sinuvoid
Sat Mar 22, 2008 11:12 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Networking
Replies: 3
Views: 12061

Well, instead of creating a whole new thread I thought I'd just post my question here :P

Is it possible to create an online multiplayer game in Qbasic? Like WoW or Unreal Tournament. (WITHOUT using the modem?)
by Sinuvoid
Tue Mar 04, 2008 8:42 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 28190

MAC I LOVE YOU. That is EXACTLY what I needed, but you also went beyond what was asked! Anyways, could you please explain the code? The lines that confuse me are: DIM Size AS LONG: Size = LOF(1) DIM TheChar AS STRING * 1 'Why times by 1? DIM TheHex AS STRING * 2 'Why times by 2? GET #1, CharNum, The...
by Sinuvoid
Tue Mar 04, 2008 12:12 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 28190

OK. Here is a more indepth perspective of my question. Here's what Hex looks like folks: This is hex, translates tooooooooo-----------------V 1A F4 D7 B1 F5 AA 22 ------------> Some random ASCII characters. Now, imagine a whole file of that. What I want to do is put hex at the end of the file. Like ...
by Sinuvoid
Mon Mar 03, 2008 3:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Cannot post code!
Replies: 4
Views: 13157

Remove the < > :P
by Sinuvoid
Mon Mar 03, 2008 3:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 28190

A ROM is a file full of data. People edit it using hex editors, and yes I want to appended stuff to the end of it in Hex , but dont know how :?
by Sinuvoid
Mon Mar 03, 2008 10:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 28190

Inserting Hexadecimal in a file

Hey peeps! Im back with more questions XD Arn't yeahs happy :P Anyways, heres my problem, How can I insert hex in a file? Like anywhere? Here's what I think it may look like: -stuff- OPEN "File.z64" FOR BINARY (Or Random?) AS #1 PUT (Forget the rest of the command XD But I know it puts wha...
by Sinuvoid
Sat Feb 02, 2008 11:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Opening something in Hexadecimal
Replies: 2
Views: 7270

Opening something in Hexadecimal

How do I open something up in hexadecimal in Qbasic, then edit it?

Im guess it woudl go something like this....

Code: Select all

CLS
OPEN "test.exe" FOR BINARY AS #1

'a for next loop here
INPUT #1, hexnumbers%

CLOSE #1

by Sinuvoid
Mon Jan 28, 2008 6:43 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

ok, so overall, dont use it :P kk thanks burger, everyone else :)
by Sinuvoid
Sat Jan 26, 2008 10:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

Complicated, but useful :P So to back space I guess, it involves messing around with the LOCATE command...btw, do you know my problem? (With the INP command in my previous post :P )
by Sinuvoid
Sat Jan 26, 2008 9:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

Thanks Burger and McClouth. Question Burger, Why when I make a program (like my last post) and press 2 or 3 it prints out like 8 of them?
by Sinuvoid
Sat Jan 26, 2008 4:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

thanks McClouth! Sure that'll help :) Now, can someone explain teh INP command in some detail please. I'm using it to get input from the keyboard but when I use it, it like prints out 8 "Hey's" or whatever. What Im I doing wrong? Here's an example: CLS DO k = INP(&H60) CASE SELECT k CA...
by Sinuvoid
Fri Jan 25, 2008 4:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

Can you tell me in depth how to use the INP command please burger :D I've looked at tuts and QB help but no luck :(

EDIT: CHR$(what??)
by Sinuvoid
Thu Jan 24, 2008 9:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic Animation Question(s)
Replies: 18
Views: 38857

Thats great man!!! I could NEVER do that XD
by Sinuvoid
Thu Jan 24, 2008 9:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

1, how do I tell it??? 2, I use INP because its fast :) and plus ive never used it Before so its good practise :P EDIT: Ok, the INP isnt working for me. I've tried tut's but no luck. Can you guys explain it for me please :D 2, How can I make letters typed in the INPUT command come out as *'s (exmapl...
by Sinuvoid
Thu Jan 24, 2008 9:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

OK, its giving me a weird error. Paste this code into Qbasic and run, and you'll see. Is this cause its in Hex and I should convert it into decimal? DO k = INP(&H60) SELECT CASE k CASE 48 PRINT CHR$(24); " "; PLAY "MB" PLAY ">d32<" CASE 21 PRINT CHR$(22); " &qu...
by Sinuvoid
Thu Jan 24, 2008 6:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

OK, sounds good, and I found a solution. Use INP command. But I need someoen to explain more about it to me and how to find the numbers(ASCII?). Example, I want it to use the arrow keys. What are they're numbers(ASCII?)?

EDIT:Nevermind, found it. Thanks for tips guys :P
by Sinuvoid
Thu Jan 24, 2008 4:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

Yeah burger, I know that if you use "E8" that it waits around have a second (half note) But What I want is for it to cycle through the CASE's really fast so it can pick up the key presses fast. Like lets say I had 100 CASE's. And I needed it to cycle through them really fast, how could I d...
by Sinuvoid
Thu Jan 24, 2008 4:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71485

Fastest way to get Keyboard presses

Ok, It been awhile but here goes... I've made a sound program that uses PLAY and INKEY commands to make sound with key presses. Is there a faster method for it to cycle through the keys in a DO LOOP? Heres the structure of what my code would look like. CLS DO k$ = INKEY$ CASE SELECT k$ 'or is it SEL...
by Sinuvoid
Mon Jan 14, 2008 6:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Um, credit card genorator problem...
Replies: 23
Views: 60255

Lol, I just saw the code now. And what Pat did is exactly what I was doing except, you generate the numbers off your own brain power xD Mine generated the numbers with it but ah well. On to another QB challenge! (Would really like to see you guys get mine working :p) P.S.We should delete this post b...
by Sinuvoid
Thu Jan 10, 2008 4:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic Animation Question(s)
Replies: 18
Views: 38857

Yeah its possible. But I dont know how to do it though :P And Welcome man!