I want to run a SKILL script interactivelyin CIW.
I load a script in CIW, then I want to see the intermediate result of the script and the script will wait for the user inpt... then accordingly I want to enter the data in CIW. The script will take it through some command like scanf() in C.
Is it possible to do that using SKILL
There are two ways to get a SKILL file to immediately execute. The first is to put the code you want to execute in a procedure declaration in the file and then execute the procedure at the end of the file. This lets you execute the procedure again without re-loading the file by typing in the procedure name and its arguments.
procedure( myProc(....) ... )
The second way is to have your SKILL code in a file not inside a procedure declaration. When you load the file, the code is evaluated. This is the way .cdsinit files work. However, the code is not captured in a function so must be loaded each time to evaluate it.
To capture the user entered data from the CIW, use an enterFunction such as enterString. The enterFunctions are very powerful and can be used with preprocessing and postprocessing functions.
Also, whilst you can use scanf, I really wouldn't recommend having commands that expect you to interact by typing in the CIW. It's not a terribly friendly use model, and tends to break in a multi-window environment when you then start trying to interact with another window - it can get very confusing...