UserMenu/format.txt
Anatoliy Belyanskiy e8e569fc23 start
2023-10-15 04:06:17 +10:00

62 lines
1.3 KiB
Plaintext

command format:
MENU.EXE [keys] [menufile] [#section]
keys:
-m <menu definition> title=User Menu; item=Flex Navigator, c:\fn\fn.exe; item=Command prompt, c:\system.exe /s
-h help page
-x autoexit from menu when program are terminated
-k keyboard control disable
-u mouse control disable
-o message output disable
menufile structure:
[MENU]
# main variables
title=<menu title>
item=<item name>, <program> <hot key>
item=Item name, {
cd \somedir\
type somefile.txt
copy somefile.txt \other\other.txt
}
item=Exit, { echo see you soon! ; <exit> }
autoexit=<0/1>
menucolour=<paper>, <ink>
barcolour=<paper>, <ink>
defaultitem=<number>, <time>
# other variables
startmessage=<message>
finishmessage=<message>
startdelay=<time>
finishdelay=<time>
# sound variables
mousesound=<wavefile>
mouseoversound=<wavefile>
keysound=<wavefile>
upsound=<wavefile>
downsound=<wavefile>
startsound=<wavefile>
entersound=<wavefile>
exitsound=<wavefile>
# wallpaper variables
background=<picture>, <style> (center | fill | stretch)
backgroundtext=<text>
backgroundfont=<fontfile>
backgroundfontsize=<fontsize>
build-in script command:
<exit> - close menu
<waitkey> / <pause> - waiting user key-input
<delay=time> - script delay
<type=text> - console message
<message=text> - message menu