Search found 8 matches

by scorpion
Thu Mar 25, 2004 10:30 pm
Forum: QBasic / QuickBasic related
Topic: Mouse clicks in Qb 4.5
Replies: 1
Views: 1151

Re: Mouse clicks in Qb 4.5

a good question.
most of the time of profesionals in BASIC goes up
in mouse routines. maybe you can use CALL ABSOLUTE
or in GW or Darthmouth BASIC CALL INTERUPT.
how its working i don't know  ;D, but is maked for mouse routines.
by scorpion
Tue Mar 23, 2004 11:33 pm
Forum: QBasic / QuickBasic related
Topic: Passing Variables into QB from C++
Replies: 2
Views: 1125

Re: Passing Variables into QB from C++

or use the windows clipboard  ;D
by scorpion
Tue Mar 23, 2004 11:31 pm
Forum: QBasic / QuickBasic related
Topic: Passing Variables into QB from C++
Replies: 2
Views: 1125

Re: Passing Variables into QB from C++

hmz....good question...
can't you make a DLL in C++ and set in the SHELL
something like this:
SHELL "yourcppprog.dll?this=that"
like the perl and the PHP way....
by scorpion
Tue Mar 23, 2004 6:49 pm
Forum: QBasic / QuickBasic related
Topic: writing quotes to files
Replies: 7
Views: 2511

Re: writing quotes to files

thanx 4 correcting :)
by scorpion
Mon Mar 22, 2004 8:35 pm
Forum: QBasic / QuickBasic related
Topic: 115200 baud on COM2
Replies: 3
Views: 1541

Re: 115200 baud on COM2

maybe the peek function:

result$ = PEEK(NUM%)

where num% is the number of te hardware or (WIN-ME or higher) the internet port. I don't have the port-numbers in my head but PEEK is the way to call them.
by scorpion
Mon Mar 22, 2004 8:30 pm
Forum: QBasic / QuickBasic related
Topic: input without input
Replies: 15
Views: 8498

Re: input without input

can somebody plz tell me how F1-12 , Ctrl , Alt and shift are identified by inkey$? (i won't be rude like that anymore)
you can do that with the KEY ON and the ON KEY statement. With this piece of code your program will stop when the ESC key is hitted: (if after the stop label the end statement in ...
by scorpion
Mon Mar 22, 2004 8:21 pm
Forum: QBasic / QuickBasic related
Topic: writing quotes to files
Replies: 7
Views: 2511

Re: writing quotes to files

you can do that with te chr$ function
it returns te ASCII char with that number.
when you type this the var. quot$ contains "
qout$ = chr$(32)
by scorpion
Sun Mar 21, 2004 11:36 pm
Forum: QBasic / QuickBasic related
Topic: OPEN command help
Replies: 19
Views: 8080

Re: OPEN command help

the difficult way to copy files within SHELL:

LET file1$ = "in.txt"
LET file2$ = "out.txt
OPEN file1$ for input as #1
OPEN file2$ for output as #1
DO UNTIL EOF(1)
LINE INPUT #1, dummy$
PRINT #2, dummy$
LOOP
CLOSE #1: CLOSE #2

the text in "in.txt" is now dito to "out.txt"
remember that in 1 program ...