require 'win32GuiTest' sleep 3 gui=Win32GuiTest.new w=gui.findWindowLikeName('WZ EDITOR').first[0] gui.setForegroundWindow(w) # gui.pushButton('&(Y)')