Interface Not Working On Jacob1's Mod

  • BrianTheEngineer
    21st Sep 2019 Member 0 Permalink

    I was using this script called Simple Command Block. This command block script is different than most command block scripts, however, because instead of typing in the Lua command, which would be highly dangerous as Lua can do many things to your computer, you can choose what you want it to do on an interface that pops up. However, on Jacob1's Mod, it will not let me type in anything, rendering the command block nearly useless other than to reset temp, reset spark, change display mode, pause the game or set gravity. Is there a way to fix this?

  • ssccsscc
    21st Sep 2019 Member 0 Permalink

    What version of jacob1`s mod are you using? What are you usually doing when it happens?

  • jacob1
    21st Sep 2019 Developer 0 Permalink
    It doesn't work for me in official either. I just can't type in any textboxes

    Edit: all I can figure out is that textInputToKey isn't being called when the main window is highlighted. It's only called when main window is not focused. not sure why.
    Edited once by jacob1. Last: 21st Sep 2019
  • ssccsscc
    21st Sep 2019 Member 0 Permalink

    Its strange. For me its works normally in both versions. I will check it again tomorrow
    Looks like problem happens when it used with other my script

    Edited 2 times by ssccsscc. Last: 21st Sep 2019
  • BrianTheEngineer
    21st Sep 2019 Member 0 Permalink

    @jacob1 (View Post)

     

    I just redownloaded Jacob1's Mod from the thread. So this should be the lastest version of Jacob'1 Mod

     

    @ssccsscc (View Post)

     

    I found an Interface API that you scripted in the script manager. Does that have anything to do with your command block?

    Edited 2 times by BrianTheEngineer. Last: 21st Sep 2019
  • ssccsscc
    22nd Sep 2019 Member 0 Permalink

    I am fixed it and updated code on pastebin. It happened because I am forgot to unregister keyboard events that was registered by previous Interface API version

    @BrianTheEngineer (View Post)

    Command block script have newer builtin version of Interface API

    Edited once by ssccsscc. Last: 22nd Sep 2019