Input certain number/letter Script command

Are there any script commands that could input a certain number/letter during the processing of input name/number commands without a player actually pressing any buttons?
Should be something like this, right?
SceneManager._scene._messageWindow._numberWindow._number = 0;
SceneManager._scene._messageWindow._numberWindow.processOk();

Also, where could I find a full list of script commands? The one that is usually mensioned here seems to be incomplete.
For the number input window, this should work in a Script command:
JavaScript:
var w = SceneManager._scene._messageWindow._numberWindow;
w._number = 0;   // set value
w.onButtonOk();  // "press" ok
Note that you'll have to run it in a separate, parallel-trigger event since the active event interpreter (the one running the Input Number command) will be waiting for input. That means you'll need a plugin if this has to happen in battle, rather than on the map, since by default there is no parallel event trigger in battle.
Spoiler: Event example
  • NPC event:
    Code:
    ◆Control Switches:#0001 parallelEventSwitch = ON
    ◆Input Number:NumberInputVar, 4 digits
    ◆Control Switches:#0001 parallelEventSwitch = OFF
  • Parallel event, bound to that switch:
    Code:
    ◆Wait:120 frames
    ◆Script:var w = SceneManager._scene._messageWindow._numberWindow;
    :Script:w._number = 0;
    :Script:w.onButtonOk();

For the name input window, you can set the name to something before input, e.g.
Code:
◆Comment:Make name blank
◆Change Name:Harold, 
◆Comment:Get input!
◆Name Input Processing:Harold, 8 characters
I believe anything more than that will require a plugin, since it uses its own scene, which lacks an event interpreter. 😅

The ultimate source of information regarding script calls is the code itself, i.e. the rpg_*.js files in your project's js subfolder. Alternatively there's community-made documentation here, not sure how complete it is: https://kinoar.github.io/rmmv-doc-web/
Ahh, thank you so much!! 🙂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/input-certain-number-letter-script-command.116277/