How to set Focus to Mainwindow

Solved! Simple and dirty :smile:

def FocusMainWindow()
  #create and close a dummie Webdialog
  dummieDlg = UI::WebDialog.new("dummie", true, "dummie", 0, 0, 10000, 10000, true)
  dummieDlg.show()
  dummieDlg.close()
end

Thanks @all

4 Likes