Text Input Window

How do I default the text input to Japanese?  It's overriding my plugin that let's me choose Japanese as the default input.
Ill have a look into all this, I haven't worked on the plugin in awhile, so it's going to take me a bit.
Thanks much darkkitten! I started learning Javascript to try to figure it out myself, and that prompted me to start studying HTML/CSS/PHP/MySQL... so... it is all a slow but steady march.
Curious if I can integrate this with Quasi input?



actually yes it's actually quite easy, or well kinda


replace the whole "Window_TextInput.prototype.processHandling" function with this.


Window_TextInput.prototype.processHandling = function() {
if (this.isOpen() && this.active) {
if (Imported.Quasi_Input){
if (Input.isTriggered('#enter')) {
if (this.isOk()){this.onTextOk();}
else{this.processJump();}
}
else if (Input.anyPressed("a-z0-9")) {
if (!Input.isPressed('#enter')){
this._editWindow.add(Input._lastPressed);
}

}
if (Input.isRepeated('#backspace')) {
this.processBack();
}

} else{
if (Input.isTriggered('shift')) {
this.processJump();
}
if (Input.isRepeated('cancel')) {
this.processBack();
}
if (Input.isRepeated('ok')) {
this.processOk();
}
}
}
};


it could be better but it's how I did it.
And after a long Hiatus I'm back, I fixed it up a bit, changed how the Plugin Command work, I noticed it wasn't working right with the latest Patch as well soo I updated it for that.
I am unable to get the show image command to work. I did download the image and follow the instructions. I even tried varying up the command text and it still isn't working. Is anyone else having problems?
Okay, so after using this successfully once, I for some reason cannot get it to work for other ones. I'm trying to make it so that you have to type in an answer to a question, and it'll check whether or not you got it wrong. It worked with an answer that was just numbers, but isn't seem to work with text. I should note that it doesn't matter whether or not I type it in all caps, all lowercase, or a mix of the 2. When I put an event to check on the variable, it appears the way I typed it. Rather than being put all into lowercase. I just don't understand what I'm doing wrong.
Spoiler: Event Page
18404213_10209415132803464_1371324018606906087_o.jpg
Excellent plugin idea, got it to work for me eventually, and glad that I'm not necro-posting because I had almost the same need as LeoHalliwell. It's a simple quest/puzzle that requires typing in a password assembled from letters written at different places on the map. I don't immediately see what LeoHalliwell is doing wrong. I thought it might have been using "==" instead of "===", but that seems to make no difference in my testing.

Two issues though: the prompt can't contain spaces or it gets parsed into the default text, and the default text always has a space added on. I ended up using the ugly "Password?_<ESC>_to_backspace _" as my last two parameters. I can see where its happening in the plugin code, but " and ' don't help the parsing, and I don't want to take out the trailing space add for fear of breaking something.
Decided to try something in an effort to fix the problem myself. I put the expression into an online Javascript debug thing, and this is what was returned:
Spoiler: Screenshot
18519110_10209429992374944_1965823713_o.png
So even when I fix the semicolon and the leading 0's, I still can't fix the expression thing. (Ignoring that the variable is undefined as it does get defined in-game). I've tried using == and === When I went to playtest my game, for some reason the only one that was working for me, no longer works properly. :/ Frankly I'm at a loss.
Spoiler: Screenshot
18518300_10211119518015566_4874336671521063057_o.jpg
Well this worked for me, and I'll put up with the virtual keyboard, ugly prompt, and pressing ESC several times to clear out the default. Luckily I only have to use this once in this project AFAIK.

Update:
Did a little more research on hijacking the built-in Name Input, which I expect experienced RPG Maker players are more familiar with using, and switched to that instead. You get no prompt text, but for me the second page of characters isn't garbage even though I wouldn't use them anyway.
Spoiler: Screenshot
cYKmMV.jpg
I think you could even use "Name Input" directly instead of the first Script call.
Not sure if Necro-ing. I apologize if I am.

The second page of Latin text (the one with the accents) shows up as diamonds with question marks in them.
Is there a font or setting I'm missing?
Hi !
Thank you so much @darkkitten for your great plugin !
I was just looking for something like that for my heroes to solve riddles during the game, and had a hard time finding something.
Works great !
I don't know if you're still working on it (old thread!), but I just have a (stupid?) question : can you use it without any default text ?
I tried to put nothing, but it didn't work (slicing error) or just put quotes "", but of course there was still...the quotes "" written. 😛 So do I have to dig in the JS or is there something I missed in your plugin ?
Won't miss to credit you, for sure !
I cannot make use of the show picture command, which is really a shame. Otherwise, it is a great plugin, I have modified it to use it as a touch text input for my pupils in English class. I'll edit my post later to show the result! Thanks a lot darkkitten!

If somebody managed to use the show picture command, I'd love to learn how as well. Thanks!
Hi !
Thank you so much @darkkitten for your great plugin !
I was just looking for something like that for my heroes to solve riddles during the game, and had a hard time finding something.
Works great !
I don't know if you're still working on it (old thread!), but I just have a (stupid?) question : can you use it without any default text ?
I tried to put nothing, but it didn't work (slicing error) or just put quotes "", but of course there was still...the quotes "" written. 😛 So do I have to dig in the JS or is there something I missed in your plugin ?
Won't miss to credit you, for sure !
I've made modifications to allow people to use sentences for the prompt, and use nothing for the input text. If you're interested, I can explain the mods.

Once modded, the plugin command looks like this:
enter_text 1 46 false What_is_your_name? _

In game, all the _ in the prompt and input text will be replaced by spaces.

EDIT: In my own thread, I've modded darkkitten's script to achieve what I needed. Making a visual on-screen touch keyboard to input text for my pupils to answer questions during their RMMV games learning activities. I posted a video there too, if you want to see what I mean.


Thanks for creating this plugin @darkkitten ! Have a great day!
Could you please update it for MZ?
It is not letting me input text I can get the input window to open but every character I hit gives me the buzzer sound am I just missing something?
@MARS3444 you do miss something as you should remove the < and >.
the example shows this on how to use:

enter_text <variable> <max characters> false <title> <default text>

as you should use as a sample:
enter_text 1 18 true your_tile_here default_text_there
@MARS3444 you do miss something as you should remove the < and >.
the example shows this on how to use:

enter_text <variable> <max characters> false <title> <default text>

as you should use as a sample:
enter_text 1 18 true your_tile_here default_text_there
@ShadowDragon Thank you so much that fixed it
Hello!
I'm new to making games, so I'm really grateful for your script. It's been a huge help!

Original thread: https://forums.rpgmakerweb.com/threads/text-input-window.52197/