The hotmenu KeywordΒΆ

Use the hotmenu keyword to add a GEL function to the GEL menu that is executed immediately when selected. The syntax is as follows:

hotmenu funcName()

This keyword is used for GEL functions that have no Parameters to be passed.



menuitem "My Functions";
hotmenu InitTarget()
   *waitState = 0x11;
hotmenu LoadMyProg()

This example adds the following sub-selections under the Scripts menu.


When you choose the InitTarget command, it is immediately executed. To call GEL functions that require Parameters to be passed, use the dialog keyword.