Qbasicnews.com
December 12, 2019, 07:16:01 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Next Project from Ruudboy Productions  (Read 1792 times)
Ruudboy
Ancient Guru
****
Posts: 544



« on: September 27, 2003, 01:19:33 PM »

i am starting my new project which will be a fake os and will come out with FTP 1.0 and RPWrite 1.0. Aswell as Phoenix OS.

And i have some questions.

1. I want to be able to have a command line interpreter. (i can do that) but i want it to appear in the bottom of the screen. How do i do that?

2. I want to be able to control windows with it.

3. And i want programs that open up differently to be controled by it so all the input things get put in the command line interpreter?

any questions on the questions i asked then PM me or aks me to rephrase it here
Logged

url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][/url]
TheBigBasicQ
*/-\*
*****
Posts: 4550



WWW
« Reply #1 on: September 28, 2003, 03:51:16 AM »

As for your second question:
You build a gui & the interpreter in your prog. The interpreter would work in this manner for eg:

Code:

-------------------------------example.prg------------------------------Proc Main()
  DefWin 160, 200, 400, 300, "Ruudboy",...
End Proc
------------------------------------------------------------------------

Now the interpreter will always search for a procedure(proc) Main() in the prog. When it finds it, it will execute all instructions present it. In this case just a defwin statement.

The interpreter will break the command into tokens like this.
DefWin
160
200
400
300
"Ruudboy"
...
So the first argument will be the command i.e. 'DefWin' and the rest will be the parameters required by that command. Now that you have obtained the parameters, the interpreter will just pass them as is to the DefineWindow SUB in your QB prog(Fake OS) which will setup a new window on the screen. Thats how you 'control' windows using the command line interpreter.

As for multitasking:
Code:

For i% = 1 to No_Of_Progs
     Prog(i%).CurrentLine = Prog(i%).CurrentLine + 1
     ExecuteLine Prog(i%).CurrentLine
Next i%


That should explain how multitasking is accomplished in a very rudimentary manner. Also, only scripts written for your Phoenix OS will be multitasked. If you want to multitask EXEs then you will have to search the web for them. I am too lazy to post it(May be later)  Cool
Logged
Ruudboy
Ancient Guru
****
Posts: 544



« Reply #2 on: September 28, 2003, 05:58:33 AM »

thanx for the help
Logged

url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][/url]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!