Jump to content



Photo
- - - - -

CSYSTEM


  • Please log in to reply
16 replies to this topic

#1 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 20 January 2004 - 02:22 PM

Presenting another CrimsonCasio innovation!

Hello everyone, I finally found a way to make variable calls to programs! I've developed a function called "call" which I will be using in this program, then I will publish the code for call in the standard library.

examples:
call("CasPaint","CASPAINT")
call(folder,program)

currently it can only execute a program with no parmeters, but I will add support for up to 10 prameters soon.

I must say that I have been working on this since before the first CasPaint release (Adobe Photoshop), and last night at 3:22am I finally figgured out how to do it, therefore, I'm not going to tell anyone how I did it till I have finished this program (so if I die suddenly your all screwed :lol: ), after its been compleated it will be open source and in the stdlib.


------------EDIT------------
I forgot to mention, changes will be made to the stdlib program script() so that it can use call() to call other programs from within the script, effectively making a script able to do anything the normal language can do. :clap:

#2 Overlord

Overlord

    Casio Technician

  • Moderator
  • PipPipPipPipPipPip
  • 355 posts
  • Gender:Male
  • Location:Brussels - Belgium
  • Interests:Math Researcher

  • Calculators:
    My head - C300 OS 3.00 - G100 Rom 1.02 - G65 - G60 - G25

Posted 20 January 2004 - 04:52 PM

explanation :

CrimsonCasio is going to risk his life tomorrow for a reason i don't know.
He's afraid of dead so he post this message.
He knows that if he dies tomorrow, we won't be able to find the code
so he would become a legend
but he knows God don't want him becoming a legend
so God won't let him die
so Crimson knows he will survive.

nice try. :rlol: :rlol: :rlol:

#3 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 20 January 2004 - 05:04 PM

:hammer: shudup :lol:

( :lol: )

dont worry about me dying, I'm to excited to die! I almost didnt sleep last night cause I was thinking so hard! :lol:

btw: this program was literally a revelation, I was fixing some bugs in CasPaint and suddenly I just knew how to do it! it didnt work the first time or the second (it could call any function, but only once for every time CSYSTEM was run, Ive asked casio about this... some strange things were happening), but the third time it worked so perfectly I almost went into shock 8O , its only 7 lines!!!!

#4 betoe

betoe

    UCF Spanish Translator

  • [Legends]
  • PipPipPipPipPipPipPip
  • 846 posts
  • Gender:Male
  • Location:Guadalajara/Mazatlan, Mexico.
  • Interests:Electronics, SW development, automotive. Swim->bike->run

  • Calculators:
    Algebra FX2.0 (R.I.P.), Classpad 300

Posted 20 January 2004 - 09:16 PM

Crimson stay all day in your house. Dont do dangerous activities (no run, knifes etc..), only go to your bedroom (or the place of your PC) and to the bathroom, no more. I think its a great innovation that idea of the call, and i will wait for that.

#5 Mohamed

Mohamed

    UCF Police

  • [Legends]
  • PipPipPipPipPipPipPip
  • 519 posts
  • Gender:Male
  • Location:Egypt, Cairo

  • Calculators:
    AFX 2.0, PV-S660, fx-570MS

Posted 20 January 2004 - 11:05 PM

Excellent discovery Crimson.
Hoping for more add-ins related ones (when it gets released of course). :crazy:

#6 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 20 January 2004 - 11:18 PM

thanks mohamed :lol2:

betoe: today I was going to school and a girl almost drove right into my car, she never even looked my way but I saw her in time to avoid a reck :ph34r:

anyway, I've added support for up to five parameters and I really dont think there will be a need for more. however, there are still some isues with lists

#7 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 21 January 2004 - 11:06 PM

hehe, I've discovered something new! try this everyone:

make two programs start(), finish(list)

in start:
fill(0,10)=>list1
finish({list1})


in finish:
CopyVar list,list2

now run it and look at list2 in the variable manager

#8 mkanter

mkanter

    Casio Addict

  • Members
  • PipPipPip
  • 74 posts

  • Calculators:
    CFX9850G, ClassPad 300

Posted 22 January 2004 - 09:10 AM

Presenting another CrimsonCasio innovation!

Hello everyone, I finally found a way to make variable calls to programs! I've developed a function called "call" which I will be using in this program, then I will publish the code for call in the standard library.

examples:
call("CasPaint","CASPAINT")
call(folder,program)

currently it can only execute a program with no parmeters, but I will add support for up to 10 prameters soon.

I must say that I have been working on this since before the first CasPaint release (Adobe Photoshop), and last night at 3:22am I finally figgured out how to do it, therefore, I'm not going to tell anyone how I did it till I have finished this program (so if I die suddenly your all screwed :lol: ), after its been compleated it will be open source and in the stdlib.


------------EDIT------------
I forgot to mention, changes will be made to the stdlib program script() so that it can use call() to call other programs from within the script, effectively making a script able to do anything the normal language can do. :clap:

for what do you need this? Or have I not read about the function/command that can create programs?
if you know the folder and the program name, you can run or "call" it the normal way (with params)

#9 Overlord

Overlord

    Casio Technician

  • Moderator
  • PipPipPipPipPipPip
  • 355 posts
  • Gender:Male
  • Location:Brussels - Belgium
  • Interests:Math Researcher

  • Calculators:
    My head - C300 OS 3.00 - G100 Rom 1.02 - G65 - G60 - G25

Posted 22 January 2004 - 11:32 AM

but with call you can run a program which the name is in a variable so you can ask the user which program launch

#10 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 22 January 2004 - 01:35 PM

for instance, if you do:

inputStr prgm,"Run Program:"
call("main",prgm)

you can run any program in the main folder, its a command line.

#11 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 22 January 2004 - 04:38 PM

make two programs start(), finish(list)

in start:
fill(0,10)=>list1
finish({list1})


in finish:
CopyVar list,list2


anybody tried this?

#12 Overlord

Overlord

    Casio Technician

  • Moderator
  • PipPipPipPipPipPip
  • 355 posts
  • Gender:Male
  • Location:Brussels - Belgium
  • Interests:Math Researcher

  • Calculators:
    My head - C300 OS 3.00 - G100 Rom 1.02 - G65 - G60 - G25

Posted 22 January 2004 - 08:50 PM

have you never seen a list in a list ? :D

for the call function : you say it can have max 5 parameters, do you have a line (or two, three, ... lol) of code for each number of parameters or a 'general procedure' ?

#13 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 22 January 2004 - 10:53 PM

the point is you cant normally generate a list in a list, this way you can.

hmm, i cant really tell you right now... wait till the challenge is over.

#14 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 23 January 2004 - 12:48 AM

ok, I have released CSYSTEM 1.00, its compressed because the people in the french classpad forum are holding a contest to see if anyone else can do it. Once they finish I'll release the code. Its on my site.

- oh, and a slight library update, fixed the rectangle function (changed its sentax to rect(x1,y1,x2,y2) )

#15 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 23 January 2004 - 08:02 PM

scripting support enabled, I'll now begin on the script wizard.

#16 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 27 January 2004 - 04:30 PM

script wizard 99% done, should be released a bit later, btw: english text isnt saved with the script so when you load a saved script you will have to view it normally (i'll work on a translator)

#17 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 20 May 2004 - 01:24 AM

Ive added a chat program to CSYSTEM, its will be packaged with the rest of the program and you can put it in an icon or run it independantly, its very small and basically was a test of the send and recieve functions for multiplayer support for lydonia. it works quite well and is stable, later I might make it more powerfull.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users