Maximize window in tray

good morning
Develop a system tray that sits in the windows, and at times, via javascript function, need to maximize the window, or restore it on screen.
I thought the “Global.HERestoreFromTray” edition of the tray, but do not know if I can use it, or how to use it.

Does anyone have any tips on how to maximize (restore) the window is minimized?


Yes, you can call “Global.HERestoreFromTray” without restriction if you have a tray icon. For calling that function, see