CSYSTEM
#1
Posted 20 January 2004 - 02:22 PM
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 ), 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.
#2
Posted 20 January 2004 - 04:52 PM
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
Posted 20 January 2004 - 05:04 PM
( )
dont worry about me dying, I'm to excited to die! I almost didnt sleep last night cause I was thinking so hard!
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 , its only 7 lines!!!!
#4
Posted 20 January 2004 - 09:16 PM
#5
Posted 20 January 2004 - 11:05 PM
Hoping for more add-ins related ones (when it gets released of course).
#6
Posted 20 January 2004 - 11:18 PM
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
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
Posted 21 January 2004 - 11:06 PM
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
Posted 22 January 2004 - 09:10 AM
for what do you need this? Or have I not read about the function/command that can create programs?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 ), 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.
if you know the folder and the program name, you can run or "call" it the normal way (with params)
#9
Posted 22 January 2004 - 11:32 AM
#10
Posted 22 January 2004 - 01:35 PM
inputStr prgm,"Run Program:"
call("main",prgm)
you can run any program in the main folder, its a command line.
#11
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
Posted 22 January 2004 - 08:50 PM
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
Posted 22 January 2004 - 10:53 PM
hmm, i cant really tell you right now... wait till the challenge is over.
#14
Posted 23 January 2004 - 12:48 AM
- oh, and a slight library update, fixed the rectangle function (changed its sentax to rect(x1,y1,x2,y2) )
#15
Posted 23 January 2004 - 08:02 PM
#16
Posted 27 January 2004 - 04:30 PM
#17
Posted 20 May 2004 - 01:24 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users