Page 1 of 1

qb in explorer under html

Posted: Sat Jan 10, 2009 1:17 am
by iamdenteddisk
I recently tried a snipit of qb code from qb4.5 inside code tags in my html enviroment like if I was inserting a java applet but when my program was finished I clicked run and it did!
flawless qb inside IE7 how is it that this worked, is there a limit to what I can do with it?

Posted: Sun Jan 11, 2009 5:31 pm
by sid6.7
it probably wont work except at a local level and if the person running your html has qbasic....

Posted: Mon Jan 12, 2009 3:46 pm
by angros47
Why don't you post some exaples of your code, so we can test it?

I'm not sure that I understand what did you do: you open qb from a HTML page, or you run qb commands inside the browser? (IE has VBscript, that is similar, for some aspects, to QB... did you use VBscript?)

Qb inside web pages seems very interesting, indeed.... I'd like to see what did you realize.

how I done it..

Posted: Fri Jan 23, 2009 10:00 pm
by iamdenteddisk
when I got to my insertion here is how I done it

<script> script = qb script
blah blah blah
</script>

I just droped my basic in the erea where the blah is without the end statment and just put system in its place.

the rest was prety automated the htmlbuilder prompted for how it was compiled I gave it a path and filename.

it was prety simple, I tried a few different snipits of code then I remembered one I wrote as a tut it used every command, it ran flawlessly too.
NO BS you play with it, it just works. the compile ran as if it was compiled from a commandline I guess it was in a scence.

no way...

Posted: Sat Jan 24, 2009 8:02 pm
by bongomeno
so you are saying that you embeded qb code into an html file like:

<script> script=qb script
print "Hello, world!"
system
</script>

and executed like a batch file or something?

i tried the above code in an html file and it did nothing?

what exactly is it that you did?

by George I think he got it..

Posted: Sat Jan 24, 2009 9:58 pm
by iamdenteddisk
yep, though the htmlbuilder did ask for which compiler to use I give it C:\compiler/QB.exe
just like that!
when I hit the run Icon the little "cammera" it works.

then I also played with starting qb from html the same way you would start a .wav in windows media player, that works too.

It works just aswell from another computer but there is a catch, to use Qb on my computer from say your house a keybord handler will need be on my computer that scans your keybord in exe form.. I hope that makes since..but code will run from the interpreter or from compiled .exe just like it was a plain html webpage. catch2 is you dont have access outside qb like html commands untill it exicutes the System command returning control to the index.html program file. -just like a wave or movie file on media player.

did you try it yet?, prety cool huh?
write a online game sprinkle some credz, party on!!

another cool fact

Posted: Sat Jan 24, 2009 10:05 pm
by iamdenteddisk
If you do this trick, and say you dont have Qb on the comp you are on, it will show a popup to download or run choosing the run feature sometimes Graphics/input error's it out closing the page but qb from the server that is cool shiznit in my book too.

If you download it then the second time through it will run from the server fine, something about dependancies...