Skip to content

#MenuRes

VariableResultRead / writeStringDiffers in 1.5 and 1.6
Set by
menu Get, menu GetDef, menu GetNum, menu GetProp

Also searchable as: #MenuRes · MenuRes · menu value

#MenuRes is the value read from a menu control by the last menu Get or menu GetNum. See menu Get for what each kind of control gives.

menu Clear
menu Window Size 180 80
menu Edit name 10 10 150 Bob
menu Button ok 10 45 60 25 OK
menu Show
set #MenuButton N/A
while #MenuButton = N/A
wait 1
menu Get name
display ok The field says #MenuRes
halt
  • 1.5: keeps its value from one run to the next.
  • 1.6: is emptied when a script starts, and is also set by menu GetProp and menu GetDef.

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.

The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.