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...
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 ...
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...
Complicated, but useful 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 )
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...
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...
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...
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?)?
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...
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...
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...