Scripted menu unable to move

Hello, I have been working on a script for custom menus, but I'm pretty new to this, and whenever I call the event I cant move the cursor on the menu at all, or cancel or anything, the game basically freezes, although the menu is on the screen.

here are the two scripts
 

class TestBase<Window_Command def initialize super(0,0) end def window_width return 60 end def window_height return 200 end def make_command_list add_command("|>",😮p1) add_command("|>",😮p2) add_command("|>",😮p3) add_command("|>",😮p4) endend
Code:
class TestMenu <Scene_MenuBase    def start    super    create_window  end    def create_window    wind=TestBase.new    wind.opacity=0    wind.set_handler(:op1, method(:return_scene))    wind.set_handler(:op2, method(:return_scene))    wind.set_handler(:op3, method(:return_scene))    wind.set_handler(:op4, method(:return_scene))  endend
and here is how I am calling it

SceneManager.call(TestMenu)I'm not sure what Im doing wrong here, any help would be appreciated.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Look through the default menus and see what they have that you don't have.


I think by default windows are DEactivated upon creation. So it may be that all you need is a wind.activate at the end of your create_window method.
No such luck, but thank you. I'll look through the default scripts a bit more, it did look like it was deactivated to start though.

edit: after a 3 hour debugging nightmare, I realized that I need to make wind an instance variable (@wind) though the name itself doesnt matter

Original thread: https://forums.rpgmakerweb.com/threads/scripted-menu-unable-to-move.43365/