Dear friends.
My aim is to generate a code. This new code has to include different not known in advance functions. When the notebook gets a new function it should be able to insert appropriate arguments. If I do it manually I can use “Edit ? Make Template” function. The question is: how to do it automatically?
I also know about the Information function, but it is not what I need exactly.
In addition, how can I learn the type of variable?
It is difficult to tell what exactly you want. If you provide a concrete example of a simple input and desired output (or other aspects of the processing) then this might become easier to answer.
Easily.
For example I got a function Plot.
Then I have a function f=X^2, variable X and two numbers a=1 and b=2. What I want is to generate a line Plot[X^2, {X,a,b}]
That’s it.
Look for Edit → Make Template in the Documentation Center. There, you will find the key shortcuts for the various OS. For Windows, it is Shift+Ctrl+K. Also, you must have the full command name on the input line, eg Plot (not pl, or Plo, etc).
Yes, I know about Shift+Ctrl+K and I already have a list of all full commands. The question is how I can automate it. In other words, how I can make a program to “press” Shift+Ctrl+K.
However, I need more. As I said in the beginning, the function is not known in advance and the program should be able to put the appropriate arguments. So the problem might be split up into two steps: