Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
menu item hotkey without immediately enter?
2019-09-16, 12:15 (This post was last modified: 2019-09-16 17:09 by cckp.)
Post: #2
RE: menu item hotkey without immediately enter?
you can use hidden key to change menu default item

Code:
#!ipxe

:menu
menu
item a a itemA
item b b itemB

item -k a selecta
item -k b selectb
choose -d ${m} -k m
goto ${m} || goto menu${m}


:selecta
#prompt Aselect
set m a
goto menu

:selectb
#prompt Bselect
set m b
goto menu

:menua
prompt A
goto menu

:menub
prompt B
goto menu
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: menu item hotkey without immediately enter? - cckp - 2019-09-16 12:15



User(s) browsing this thread: 1 Guest(s)