无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2281|回复: 9
打印 上一主题 下一主题

[求助] 加载外置字体后,菜单错位

[复制链接]
跳转到指定楼层
1#
发表于 2023-5-17 19:40:23 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
用工具制作外置字库后,使用配置文件加载,界面就会出现错位了,footer也不显示了,到底是哪里的问题
10#
发表于 2023-5-19 10:04:42 来自手机 | 只看该作者
steve6375确实反馈过不少意见,也提出过不少建议。
回复

使用道具 举报

9#
发表于 2023-5-19 08:55:12 | 只看该作者
我一直觉得Easy2boot太过于复杂。好像是英国人steve6375的大作?他给g4d/g4e反馈过不少意见,提出过建议。
steve6375,Developer of Easy2Boot and RMPrepUSB.

回复

使用道具 举报

8#
 楼主| 发表于 2023-5-17 21:58:37 | 只看该作者
他这个设计有点复杂,反正就是,配置文件可以多处分离设置,解耦性很好,可以很方便的更改语言,更改菜单,txt文件就是给文件增加title的,里面有个F1.cfg,是软件默认的

SIMP_CHINESE.rar

28.32 KB, 下载次数: 0, 下载积分: 无忧币 -2

回复

使用道具 举报

7#
发表于 2023-5-17 21:45:18 | 只看该作者
2011yaya2007777 发表于 2023-5-17 07:32
你这是糊弄人了。你截屏里面的汉字在哪里?菜单项位置是如何设置的,这些都没有。求助人不提供具体情况,只 ...

让你猜谜语
回复

使用道具 举报

6#
发表于 2023-5-17 21:32:55 来自手机 | 只看该作者
你这是糊弄人了。你截屏里面的汉字在哪里?菜单项位置是如何设置的,这些都没有。求助人不提供具体情况,只给个盲盒?

点评

让你猜谜语  详情 回复 发表于 2023-5-17 21:45
回复

使用道具 举报

5#
 楼主| 发表于 2023-5-17 20:50:32 | 只看该作者
  1. !BAT
  2. #Generated by E2B_Editor

  3. set GMODE=800
  4. set MYWBMP=/_ISO/Sample_Beach_Runner.jpg

  5. #MENU
  6. set rstart=6
  7. set topstart=3
  8. set menuw=62
  9. set noitems=24
  10. set tophelp=27

  11. #MENU COLOURS
  12. color normal=0x799A6C
  13. color helptext=0x002147
  14. # The line below sets the highlight foreground and background colours.
  15. color highlight=red/black
  16. # The line below sets the standard (console) foreground and background colours.
  17. color standard=light-cyan/black
  18. # The lines below overide the  highlight and standard settings and will set a transparent/black background
  19. color highlight=0xAA0000
  20. # OR you can specify a background color as well as a highlight colour - e.g. for a blue background (0000CC)
  21. # color highlight=0x0000CC00AA0000
  22. color standard=0x799A6C

  23. #BORDER
  24. color border=0xAAAAAA
  25. set bdwidth=1
  26. # for non-E2B use: /menusetting.gz   0 0 %bdwidth% %tophelp% %noitems% %topstart% %menuw% %rstart%
  27. #HEADING
  28. set HEADPOS=0000
  29. set HEADING=\x20 EASY2BOOT - MAIN MENU  (%VER%) %B64%
  30. set HCOLOUR=0x960018
  31. set CENTREHD=
  32. #FOOTER
  33. set HBTM=3202
  34. set FCOLOUR=0x2E2D88
  35. set HELPTEXT=HDD0 [F7]   Back [F8]   Reboot [F9]   Power Off [F10]  (%^LANG%)

  36. if "%LANG%"=="" set LANG=SIMP_CHINESE

  37. set EXTOFF=1
  38. setmenu --triangle-off
  39. setmenu --left-align


  40. # --------------------------------------- ADVANCED MENU SETTINGS ------------------------------------------------------------------------------




  41. # DO NOT DELETE THE LINE ABOVE! - Settings below this next line will be preserved when using the E2B_Editor.exe

  42. # WARNING: Strange grub4dos errors may be seen if you use too many extra variables (set commands)!

  43. # Tip: To permanently remove the grub4dos boot text at top of screen and grub4dos startup messages, run \_ISO\docs\patchme from the grub4dos console
  44. # create-your-website-with-blocks/mye2b-cfg/ - patching grub4dos

  45. # Silent MBR boot of stage 1.5 grub4dos (works for both 0.4.5c and 0.4.6) - one reboot is required for it to permanently take affect.
  46. ### if exist /_ISO/docs/PatchMyMBR call /_ISO/docs/PatchMyMBR > nul
  47. # Silent startup of grub4dos - no diagnostic/info messages (only works for 0.4.6a by changing debug msg=2 to debug msg=0) - permanently changes /grldr files (please use \_ISO\docs\patchme for patch if not using 0.4.6)
  48. ### cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /grldr > nul
  49. ### if exist /%grub%/grldr_046 cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /%grub%/grldr_046 > nul

  50. # ---- IF YOU ARE USING A REMOVABLE USB FLASH DRIVE FOR E2B (or are not going to use a 'Helper' USB flash drive) ---
  51. # no need to search for WINHELPER.USB so set NOHELPER=1 (or use if E2B hangs at 'Looking for WINHELPER.USB...' )
  52. # speeds up booting to Main Menu slightly - only use if E2B drive is Removable Flash drive!
  53. ###set NOHELPER=1

  54. # Suppress Win8/10/2016/2019 'Press any key for Windows Repair/Setup only...' prompt
  55. ###set NOREPAIR=1

  56. # If you set the TSUG variable (suggested timeout in seconds) in your \_ISO\MyE2B.cfg file, you can change the timeout behaviour of QRUN.g4b Auto-Suggest, e.g.
  57. # No timeout - auto-suggest will always wait for the user to press a key
  58. ###set TSUG=0
  59. # Change auto-suggest timeout (1-989)  - e.g. 10 = wait 10 seconds
  60. ###set TSUG=10
  61. # use default timeout of 6 seconds, but if user does not press a key, always use the suggested file extension (if it is not .isoask), valid range = 990 to 999
  62. ###set TSUG=993
  63. # Always wait for user - if user presses ENTER only, the suggested file extension will be used instead of the current file extension
  64. ###set TSUG=990

  65. # --- GRUB4DOS 0.4.6 + USB DRIVERS ---
  66. # Automatically load grub4dos usb 2.0 driver if Plop! boot loader has been used
  67. # Used when booting E2B under VMWare when using a Plop! boot ISO
  68. ### set TESTPLOP=1

  69. # To prevent E2B refusing to boot if Partition 4 (hd0,3) is present, uncomment the two ### lines below -
  70. # WARNING: THIS WILL ERASE PTN #4 (hd0,3) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
  71. ###if exist (%E2BDEV%,0)/_ISO/MyE2B.cfg partnew (%E2BDEV%,3) 0 0 0
  72. ###if exist (%E2BDEV%,1)/_ISO/MyE2B.cfg partnew (%E2BDEV%,3) 0 0 0
  73. # To always erase Partition 3 on boot, uncomment the two ### lines below - check ptn 3 is not used or you may delete a data partition on your E2B drive!
  74. # WARNING:  THIS WILL ERASE PTN #3 (hd0,2) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
  75. ###if exist (%E2BDEV%,0)/_ISO/MyE2B.cfg partnew (%E2BDEV%,2) 0 0 0
  76. ###if exist (%E2BDEV%,1)/_ISO/MyE2B.cfg partnew (%E2BDEV%,2) 0 0 0

  77. # ----- PROGRESS MESSAGE CONTROL ----
  78. # Display background image and cursor immediately so startup messages are printed over the background (but screen won't scroll nicely if it gets full of text!)
  79. # call Fn.70 3
  80. # Set cursor outside of the screen so no text or cursor is seen for a while (cursor set to column 0  row 128!)
  81. # call Fn.5 0 128
  82. # Turn off cursor and splashimage until Main Menu is shown - useful if you have disabled startup messages and don't want the cursor character at the top of the screen!
  83. # call Fn.70 0 ;; clear
  84. # If you want to get rid of any earlier screen text use clear
  85. # clear

  86. # Examples (use ONE of the following lines by removing the ### characters)
  87. # Use this line for a blank screen startup with no progress messages. Tip: use patchme to prevent early grub4dos messages (see \_ISO\docs\PatchMe_ReadMe.txt)
  88. ###call Fn.70 0 ;; clear ;; call Fn.5 0 128 ;; set redirp=> nul ;; set redir=> nul

  89. # Use this line to display the background image as early as possible
  90. ###call Fn.70 3 ;; set redir=> nul

  91. # Use this line to display the background image as early as possible with no startup messages except an initial quick 'Please wait...' message
  92. ###call Fn.70 3 ;; set redir=> nul ;; set redirp=> nul ;; debug -1 ;; pause --wait=1 Please wait... ;; debug 0


  93. # ---- E2B STARTUP AND OTHER MESSAGES ----
  94. # SUPPRESS STARTUP FILE ENUMERATION INFORMATIONAL MESSAGES from AUTOMN.g4b, etc.
  95. ###set redir=> nul

  96. # SUPPRESS OTHER (important) E2B MENU.LST PROGRESS MESSAGES (NOT recommended!)
  97. ###set redirp=> nul

  98. # Always display uniform single-colour screen 0xRRGGBB on loading menu (even if a wallpaper was previously loaded - e.g. when using F8) - useful if using STAMPS but not using a wallpaper
  99. ###splashimage --fill-color=0x000000

  100. # Note: redir and redirp may affect the messages displayed when a .imgPTN file is selected. Read more at

  101. # Display ASCII Easy2Boot text for 1 second (or
  102. ###graphicsmode -1 800 > nul ;; cat /%grub%/ASCII_E2B.txt && pause --wait=1 > nul

  103. # ---- MENU NUMBERING ----
  104. # E.g. The user can type '23' to select item 23 in the menu and so it is useful to have the menu item numbers displayed on the menu.
  105. # Auto-numbering is enabled by default (AUTONUM=0x2001).  AUTONUM=CCMM where CC is the marker/arrow character (byte) and MM is 00 (off), 01 (number bootable entries) or 02 (number all entries)
  106. # Use AUTONUM=0x2000 to turn auto-numbering off, 0x2001 sets numbering on with a space after number (default), 0x2d01 autonumber with hyphen after number, 0x1a01 arrow, 0x3a01 colon, 0x0701 dot
  107. # e.g. 0x2d00=?menutext, 0x2d01=?nn-menutext  (where nn=two-characters for menu numbering 0-9/10-99)
  108. # Turn off auto-numbering
  109. ###set AUTONUM=0x2000

  110. # Turn off the arrow menu pointer (safer than using write 0x8308 0) (E2B v1.A0+) setmenu --triangle-off requires grub4dos 0.4.6a 2018-07 or later
  111. ### setmenu --triangle-off ||  write 0x8308 0 > nul

  112. # --- ADVANCED MENU CONFIGURATION ----

  113. # set a short bar for background of highlighted menu entry (E2B v1.A0+) requires grub4dos 0.4.6a 2018-07 or later
  114. ###set SHORT_HL=1

  115. # centre the menu entries inside the menu area (and centre help text under menu) - requires grub4dos 0.4.6a 2018-07 or later
  116. ###setmenu --middle-align

  117. # sets the Default menu entry that will be highlighted when the WINDOWS INSTALL MENU is displayed
  118. ###set  DEFM_WIN=1

  119. # If DEFMENU=0 then the '0 Set default menu entry and timeout' menu item in the Main menu will not be listed
  120. ###set DEFMENU=0

  121. # WINCOUNT variable will cause all the \_ISO\Windows ISOs to always be enumerated on a FASTLOAD boot
  122. ###set WINCOUNT=1

  123. # If NOF7HD is set then the 'Boot from HDD0 F7' menu entry is suppressed in all menus
  124. ###set NOF7HD=1

  125. # If the NOF8B is set then the Windows menu will not display 'F8 Back to Main Menu'
  126. ###set NOF8B=1

  127. # if NOF8MAIN is set then no F8 Main menu entry will be available
  128. ###set NOF8MAIN=1

  129. # If NOF9R is set then the 'F9 Reboot menu' item will not be listed in any menu (remember to change HELPTEXT too)
  130. ###set NOF9R=1

  131. # If NOF10H is set then the 'F10 Power Off/Halt' menu item will not be listed in any menu (remember to change HELPTEXT too)
  132. ###set NOF10H=1

  133. # Don't display the F1 HELP entry in the Main menu
  134. ###set NOF1=1

  135. # NO FASTLOAD MENU - If you don't want the user to see the Main Menu entry to enable or disable FASTLOAD, and disable the Status indicator line
  136. ###set NOFLDMNU=1
  137. ###set NOFLDST=1

  138. # NOWMENU causes a Windows Install sub-sub menu to return back to the Main menu rather than return to the Windows Install menu
  139. ###set NOWMENU=1

  140. # NOWINMAIN cause the Windows Main Menu entry to be suppressed (even if there are \_ISO\WINDOWS\xxx\yyy.ISO files present
  141. ###set NOWINMAIN=1

  142. # Set Help Menu text area (the text displayed when a menu entry is highlighted) size/properties
  143. # hstart = x position of menu help text (default = rstart-1), min = 1, 0=use menu width and menu start
  144. # hwidth = width of menu help text (default = menuw+2), 0=use whole width - 2 x hstart, can display help text to right of menu (e.g. hstart=65 hwidth=34 tophelp=8 topstart=4 rstart=4)
  145. # Warning: Graphics corruption will occur if you exceed the width of the screen (hwidth+hstart < 100 for 800x600)!
  146. ### set hwidth=70 && set hstart=6

  147. # Write text to the menu (grub4dos 0.4.6a only) - setmenu --string=x=y=colour="text" - all commands are cached\remembered by grubdos until menu is re-loaded or strings cleared (max. 16 strings)
  148. # clear all previous strings
  149. ###setmenu --string=
  150. # auto-add next string to grub4dos display cache buffer (up to 16 commands allowed) - old syntax (deprecated - do not use)...
  151. ###setmenu --string=69=18=0xFF00FF="Hello"
  152. # NEW SYNTAX - USE iINDEX = i0-i15, can also use background colour and m or s to centre text
  153. ###setmenu --string=i0=69=18=0x22222200FF00FF="Hello"

  154. # Display Date and Time on every menu (max. 16 --string commands, use 'setmenu --string=' to clear all strings)
  155. # Only adds string if iINDEX is supported by grub4dos
  156. ###help setmenu > (md)0x300+9 ;; cat --locate=iINDEX (md)0x300+9 > nul && setmenu --string=i0=75=0=0xffffff="date&time"
  157. # Can add own string with special replacement code strings of dd MM MMM yyyy hh HH mm ss AP - e.g. Display [2019-Aug-05  02:24:33 PM]
  158. ###help setmenu > (md)0x300+9 ;; cat --locate=iINDEX (md)0x300+9 > nul && setmenu --string=i0=71=0=0xffffff="date&time=[dd-MMM-yyyy  hh:mm:ss AP]"

  159. #You could set up a hotkey to permanently disable the date&time string (until reload Main menu again):
  160. ###()/%grub%/hotkey [ctrl+F2] "@setmenu --string=i0" > nul

  161. # You can also draw lines and boxes - create-your-website-with-blocks/configure-e2b/draw-lines-and-boxes/

  162. # --- CHARACTER SET FONTS ----

  163. # Font settings - specify alternate unifont hex file which is loaded after the E2B unifont file is loaded - many 16-pixel fonts are in /_ISO/docs/Fonts/ folder
  164. # Special non-ANSI characters are not included, so only suitable for English language really
  165. # if the filename contains ".f24" E2B will use large fonts without needing 'set FONTH=24' to be set
  166. ###set FONT=()/_ISO/docs/Fonts/terminus.uni.gz
  167. set FONT=()/_ISO/docs/Fonts/xingshu.f24

  168. # Use Default BIOS Font (tends to be thick+bold for standard ASCII characters)
  169. ###set BIOSFONT=1

  170. # Do not load unifont fonts - if NOUNIFONT=1 then the standard E2B unifont font file is not loaded (to save time) but only ANSII characters will be displayed
  171. ### set NOUNIFONT=1

  172. # LARGE FONTS - FONTH specifies the font height - only valuies of 16 or 24 are allowed (default = 16 = full unifont character set)
  173. # If you set FONTH=24 E2B will use a *limited* default set of 24-pixel high fonts (grub4dos 0.4.6a only)
  174. ###set FONTH=24
  175. # If you set FONT24 to the path of a 24-pixel font, E2B will use that font as the default font
  176. # Remember to set HBTM correctly to prevent the screen from scrolling!
  177. ###set HBTM=2300

  178. # You can also load your own font after the default fonts have been loaded by using the FONT parameter - if FONTH=24 then the hex font file must be 24-high format
  179. # If 24 pixel high: 1024x768=85 chars x 32 lines, 800x600=66x25 lines
  180. # 24 pixel high fonts: yxt.f24=trad Chinese, ltxxx.f24, terminal.f24, developer.f24, X11.f24 - some fonts may not work in some languages
  181. ###set FONT=/_ISO/docs/Fonts/developer.f24

  182. # ----------- DISABLE AUTOMENU feature -----------------
  183. # E2B will allow you to press the first letter of a menu item to jump to it - grub4dos keys p, e, b and c keys will only work if SHIFT is held down
  184. # AUTOMENU = OFF will disable the AUTOMENU jump feature and special grub4dos p, e, b, c keys must be lower case (don't hold down SHIFT key)
  185. ###set AUTOMENU=OFF

  186. # SET DEFAULT MAINMENU ITEM AND TIMEOUT
  187. # Information: Create an \_ISO\menu_defaults.txt file
  188. # Set the default entry and timeout in the menu_defaults.txt file (debug 0 prevents menu item number at top right from being displayed)
  189. # DO NOT UNCOMMENT THE LINES BELOW! They should not be set in this file!
  190. # e.g. use these 3 lines in the menu_defaults.txt file for the first menu item as default and 0 seconds timeout (-1) - remove the # signs
  191. #   default 0
  192. #   timeout -1
  193. #   debug 0
  194. # This will fix which initial main menu default entry will be highlighted and the timeout in seconds.
  195. # You must also set DEFMENU=0 to suppress the 'Set default menu entry and timeout' menu entry

  196. # ---- GFX menu support ----
  197. #  If you really want to use a gfxmenu or @DED-LEGO@ or GFX-RIPPER then specify the 'message' file here -
  198. #  There are many gfxmenu limitations (on error goes into text mode, no timeout or default option, number of ISOs cannot be displayed, etc. etc.)
  199. # Tip: grub4dos 0.4.6a and E2B now supports large fonts - see FONTH below
  200. # Place your gfxmenu file in the /_ISO folder. Change the GFX= line to match the name of your file (path is always relative to \_ISO)
  201. set GFX=
  202. ###set GFX=message
  203. ###set GFX=docs/Templates/GFXMenu/message

  204. # ---- TEXT MODE (no fancy wallpaper and no unicode font used - quick to load) ---
  205. # NO GRAPHICS MODE OR WALLPAPER or GFXMenu
  206. # Text-mode menu (no wallpaper) - suppresses graphics mode (must use 'GFX=none') for 80x25 lines
  207. # Try these settings if using text mode - set HBTM=2301 set HCOLOUR=0104 set FCOLOUR=0104
  208. # and use these text colours - color normal=light-cyan/dark-gray   highlight=red/cyan  helptext=yellow/light-gray  standard=light-cyan/black border=red/black
  209. # See "\_ISO\docs\MyThemes\TextMinimal.cfg" for an example MyE2B.cfg file.
  210. ###set GFX=none

  211. # ---- KEYBOARD TYPE -----
  212. #set which keyboard you are using (use one only!) - see the KBD_xxxx.g4b files in the grub folder if you want to modify the key mapping
  213. #Note: Passwords may not work properly if the keyboard scan code mapping is not correct! Default = US keyboard (set KBD=)
  214. ###set KBD=KBD_AZERTY.g4b
  215. ###set KBD=KBD_FRENCH.g4b
  216. ###set KBD=KBD_GERMAN.g4b
  217. ###set KBD=KBD_ITALIANO.g4b
  218. ###set KBD=KBD_JAPAN_106.g4b
  219. ###set KBD=KBD_QWERTY_UK.g4b
  220. ###set KBD=KBD_QWERTZ.g4b
  221. ###set KBD=KBD_SPANISH.g4b
  222. ###set KBD=KBD_QWERTZ_HUN.g4b

  223. # set the keyboard type now (optional)
  224. # the next line ensures the correct keyboard scan codes will be recognised if using a non-USA keyboard (not required unless asking for password later on in this cfg file)
  225. ###if not "%KBD%"=="" call /%grub%/%KBD% > nul

  226. # ---- LANGUAGE SUPPORT ----
  227. # To change language from ENGlish, look for supported language folders in the \_ISO\e2b\grub\xxx folders
  228. # e.g Arabic. Uncomment first line below to right-align menu entries. RTL=1 means use menuw value - or set RTL=<number>  - e.g. 'set RTL=58' to adjust position of menu headings
  229. # use RTL for RIGHT-TO-LEFT LANGUAGES only, GERMAN_ALT has different alignment of [hotkey] characters in menu
  230. ###if "%LANG%"=="" set LANG=ARABIC && set RTL=1 && set AUTONUM=0 && write 0x8308 0 > nul
  231. ###if "%LANG%"=="" set LANG=CZECH
  232. ###if "%LANG%"=="" set LANG=DUTCH
  233. ###if "%LANG%"=="" set LANG=ENG
  234. ###if "%LANG%"=="" set LANG=FRENCH
  235. ###if "%LANG%"=="" set LANG=GERMAN
  236. ###if "%LANG%"=="" set LANG=GERMAN_ALT
  237. ###if "%LANG%"=="" set LANG=GREEK
  238. ###if "%LANG%"=="" set LANG=ITALIAN
  239. ###if "%LANG%"=="" set LANG=POLISH
  240. ###if "%LANG%"=="" set LANG=PORTU_BRAZIL
  241. ###if "%LANG%"=="" set LANG=ROMANIAN
  242. ###if "%LANG%"=="" set LANG=RUSSIAN
  243. ###if "%LANG%"=="" set LANG=SIMP_CHINESE
  244. ###if "%LANG%"=="" set LANG=SPANISH
  245. ###if "%LANG%"=="" set LANG=SWEDISH
  246. ###if "%LANG%"=="" set LANG=TRAD_CHINESE
  247. ###if "%LANG%"=="" set LANG=UKRAINIAN
  248. ###if "%LANG%"=="" set LANG=VIETNAMESE
  249. ###if "%LANG%"=="" set LANG=HUNGARIAN
  250. ###if "%LANG%"=="" set LANG=INDONESIAN

  251. # User Language Selection example code - prompt user before Main Menu is displayed - see \_ISO\e2b\grub folders for all available languages
  252. # Uncomment all the following lines (remove ###) to ask user to choose a different language (edit as required)
  253. ###if not "%DONEMENU%"=="" goto :skplang
  254. ###echo CHOOSE A LANGUAGE
  255. ###echo
  256. ###echo C  = Chinese (Simplified)
  257. ###echo TC = Chinese (Traditional)
  258. ###echo E  = English
  259. ###echo G  = German
  260. ###echo S  = Spanish
  261. ###echo
  262. ###set /p ask=Which language :
  263. ###if /i "%ask%"=="C" set LANG=SIMP_CHINESE
  264. ###if /i "%ask%"=="TC" set LANG=TRAD_CHINESE
  265. ###if /i "%ask%"=="G" set LANG=GERMAN
  266. ###if /i "%ask%"=="S" set LANG=SPANISH
  267. ###if /i "%ask%"=="E" set LANG=ENG
  268. ###:skplang

  269. #  ----- SOUND ALARM IF SOMEONE BOOTS WITHOUT CAPS LOCK ON ------
  270. # Check for CAPS LOCK on boot - if not on then sound alarm and switch off system if user presses a key
  271. # get special keys - e.g. SHIFT, CTRL, etc. into n for use later
  272. # ONLY WORKS IN BIOS MODE - NOT UEFI
  273. ###set n=0
  274. ###/%grub%/bios int=0x16 eax=0x00000200 > (md)0x300+1
  275. ###cat --skip=12 --length=2 (md)0x300+1 | set /a n=0x > nul
  276. # bits in n = LShift=01, RShift=02, CTRL=04, ALT=08,SCROLL=0x10, NUM=0x20, CAPS=0x40, INS=0x80
  277. ###if exist n calc %n%&0x40 > nul || if not exist DONEMENU set n=xxx && beep --play=255 400 20 500 20 600 20 700 20 800 20 900 20 1000 20 1100 20 1200 20 1300 20 1400 20 1500 20 1600 20
  278. ###if "%n%"=="xxx" echo HALT! && halt
  279. ###set n=

  280. #   ---- PASSWORD PROTECTION -----
  281. # E2B default menu edit password is easy2boot
  282. # The line below will set a password of 'easy2boot' to stop users editing the menus accidentally (encrypted)
  283. # You can use an encrypted md5 value or a plain text value ()
  284. # If you want to edit the menus, press p and then enter the password (or you can use an unencrypted password like this: 'set pwd=fred')
  285. # Does not work if using GFX Menu
  286. # Set encrypted password of easy2boot
  287. ###set pwd=--md5 $1$1$okAQ3AJUdhqf3TVrwKvJP1
  288. # OR set plain text password of fred
  289. ###set pwd=fred

  290. # Any payload file extensions ending in "pwd", e.g. Ubuntu.isopwd, will ask for a password before they will run
  291. # If menupwd is defined, then that will be the required password for the payload file
  292. # If menupwd is not set then the pwd (E2B menu edit password) will be used (if set)
  293. # e.g. if file = Ubuntu14.1.isopwd or Win7Install.imgPTNpwd  and menupwd=fred then you must enter fred before the payload will run
  294. #      if both menupwd and pwd are not set, then no password will be prompted for
  295. # Can use md5 encrypted password or plain text...
  296. ### set menupwd=--md5 $1$fzr3$gtBm4hqXA1CohTSpMsuxG1
  297. ### set menupwd=fred

  298. # --- MASTER PASSWORD ---
  299. # To prompt user for password or PIN code, we must set up graphics, etc. now
  300. # GMODE was already set in the lines above - run graphicsmode before splashimage
  301. ###graphicsmode -1 %GMODE% > nul
  302. # If you want to display a different background bitmap just for the Master password user input (see below), use these 3 lines below
  303. ###call Fn.70 3
  304. ###splashimage /_ISO/docs/Templates/Aliums/Aliums.bmp.gz > nul
  305. ###clear
  306. # for a better method of password input, create-your-website-with-blocks/configure-e2b/passwords-and-security/
  307. # the next line changes the font immediately but can cause a delay whilst it loads - ensure in graphics mode
  308. ###font ()/%grub%/unifont.hex.gz
  309. # You should have already set the keyboard type previously (e.g. QWERTZ)
  310. :mpwd
  311. # If you want to set a Master password for Easy2Boot to prevent anyone from using it on first boot
  312. # (e.g. 'fred') uncomment and edit the lines below (you can use password --md5 xxxxxxxx format if you wish)
  313. ###if exist DONEMENU goto :pok
  314. ###clear && echo && echo ENTER E2B MASTER PASSWORD
  315. ###debug 0
  316. ###password fred && goto :pok
  317. ###echo && set /p:2 ask=WRONG PASSWORD!
  318. ###goto :mpwd
  319. :pok
  320. ###if not exist DONEMENU echo

  321. # To reboot if the password is wrong, replace the line   goto :mpwd    with the grub4dos command     reboot

  322. # This will cause the wallpaper background to be always loaded before displaying the Main Menu - only needed if you enable FASTLOAD *AND* use splashimage for Master password as above
  323. ###set DONEMENU=

  324. # --- MONTHLY PIN CODE ---
  325. # The user must enter the "4 digit PIN code of the month"
  326. # Windows PIN CALCULATOR app is available on request
  327. # VARIABLES BELOW CAN AFFECT ACTIONS OF TP.g4b
  328. # SEED - 4 digits - this is your special SEED number - default is 1985
  329. # set number of allowed attempts - default is very large!
  330. #
  331. # SPECIAL OPTIONS: TESTPIN and PINRETURN
  332. # set TESTPIN as first user guess or else user will be prompted for PIN code - if pin code is wrong, user will be prompted again (unless ATTEMPTS=1)
  333. # if PINRETURN is set then call to TP.g4b will always return after n ATTEMPTS or on success. PINRETURN=OK if correct pin number was used.
  334. # Typical use: Uncomment only the 6 ### lines, set ATTEMPTS and SEED. E2B Version line can be altered for any special message you like.
  335. # Do not uncomment ##SS# lines unless needed (create-your-website-with-blocks/configure-e2b/passwords-and-security/)
  336. ###if not exist /%grub%/TP.g4b halt
  337. ###if exist DONEMENU goto :TPfin
  338. ###set SEED=1985
  339. ###set ATTEMPTS=3
  340. ##SS#set TESTPIN=8684
  341. ##SS#set PINRETURN=1
  342. ###echo E2B VERSION %VER%
  343. ###call /%grub%/TP.g4b
  344. ##SS#if not "%PINRETURN%"=="OK" reboot
  345. ##SS#if "%PINRETURN%"=="OK" clear
  346. :TPfin

  347. # --- ENCRYPT FILES ---
  348. #Tip: For even better security, use 7Zip to compress this MyE2B.cfg file to GZip format or use lzma.exe (See )
  349. #     \_ISO\docs\E2B Utilities\LZMA has useful batch files to encrypt files
  350. #     You must keep the file name unchanged (e.g. MyE2B.cfg) and can also set it's file attribute to 'Hidden' and 'System' or set permissions if NTFS E2B drive used.

  351. # ---- SET AN EXPIRY DATE - EXAMPLES -----
  352. # Change the 20160320 date below to alter the expiry date and change the message - you can use reboot instead of halt, Fn.73 3 waits for 3 seconds
  353. ###if 20160320<=%@date:~0,4%%%@date:~5,2%%%@date:~8,2%  echo THIS SOFTWARE HAS EXPIRED! && call Fn.73 3 && halt

  354. # Use this code to only allow use on weekdays
  355. ###call /%grub%/dow.g4b %@date:~0,4% %@date:~5,2% %@date:~8,2%
  356. ###if "%dow%"=="0" echo It's Sunday! && call Fn.73 3 && halt
  357. ###if "%dow%"=="6" echo It's Saturday! && call Fn.73 3 && halt
  358. ###set dow=

  359. # See
  360. # set 14 day expiry date from 28th March 2016
  361. ###clear
  362. ###call /_ISO/e2b/grub/checkdate.g4b 2016 03 28 14 SILENT
  363. ###if not "%CHECKDAT%"=="OK" echo E2B HAS EXPIRED! && call Fn.73 3 && halt
  364. ###set CHECKDAT=
  365. ###set togo=

  366. # Example which adds Expires in xx days onto Main Menu - reboots if expired  (debug -1 prevents number countdown when using pause --wait=3)
  367. ###clear
  368. ###call /_ISO/e2b/grub/checkdate.g4b 2019 06 16 14
  369. ###debug -1
  370. ###if "%CHECKDAT%"=="OK" if not exist DONEMENU pause --wait=3 Days before Expiry=%togo%
  371. ###debug 1
  372. ###if not "%CHECKDAT%"=="OK" echo THIS SOFTWARE HAS EXPIRED! call Fn.73 3 && reboot
  373. ###if %togo%==1 setmenu --string=i1=76=22=0xFFFF00="Expires tomorrow"
  374. ###if not %togo%==1 setmenu --string=i1=76=22=0xFFFF00="Expires in %togo% days"
  375. ###set CHECKDAT=
  376. ###set togo=


  377. # --- CLONE PROTECTION (lock to this drive only) ---
  378. # This code gets the exact size of the E2B USB drive to prevent it being copied and run from another USB drive.
  379. # get number of sectors using INT 13h AH=48 into memory at DS:SI+10h  - edx=80h is hard disk 0, 81h would be hard disk 1
  380. # Change number 12345678 to match the size returned by your drive. Change halt to reboot if desired. Delete pause line if not required.
  381. # ONLY WORKS IN BIOS MODE - NOT UEFI
  382. ###debug 1 ;; echo xxxxxxxxxxxxxxxxxxxxxxxxx > (md)0x300+1 ;; write 0x60000 0x42 > nul ;; write 0x60010 0 > nul
  383. ###/%grub%/bios int=0x13 eax=0x4800 edx=0x80 ds=0x6000 esi=0x0 > nul ;; read 0x60010 > nul ;; set /a END=%@retval%-1 > nul
  384. ###if not %END%==12345678 pause THIS DRIVE ENDS AT SECTOR %END%
  385. ###if not %END%==12345678 halt
  386. ###set END=


  387. # --- MENU ENTRY SPACING ---

  388. # grub4dos 0.4.6a allows you to set the spacing between text characters and between lines on the menu, default = 0:0  (Font spacing : Line spacing]
  389. # note that altering the line spacing will mean you will need to adjust your menu size/position parameters and text postitions, etc.!
  390. ###setmenu --font-spacing=1:2 > nul

  391. # ---- DEFINE GLOBAL HOTKEYS (for all menus) ------

  392. # create-your-website-with-blocks/configure-e2b/global-hotkeys/

  393. # Set global hotkey CTRL+R for FASTLOAD Refresh - only defined if /FASTLOAD.YES is present
  394. ###if exist (bd)/FASTLOAD.YES ()/%grub%/hotkey [Ctrl+R] "clear && echo REFRESH > /FASTLOAD.YES && configfile /%grub%/menu.lst" > nul

  395. # Program hotkeys to work in ALL menus - no separate menu entry is required. Some examples shown below.
  396. # Add global hotkeys - examples only - use ;; or ;& or && to separate commands.
  397. # Use @ to prevent commands displaying on screen when hotkey pressed - e.g. "@(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul
  398. ###()/%grub%/hotkey [F9] "reboot" > nul
  399. ###()/%grub%/hotkey [F10] "halt" > nul
  400. ###()/%grub%/hotkey [Ctrl+F9] "clear && echo \nLoading Windows menu... && /%grub%/configX.g4b /%grub%/MenuWinInstall.lst" > nul
  401. ###()/%grub%/hotkey [ctrl+F7] "clear && echo $[0004] \n\nPress a key to reboot\n && pause && reboot" > nul

  402. #Disable Ctrl+F8 hotkey
  403. ###()/%grub%/hotkey [Ctrl+F8]

  404. # Set Ctrl+F8 hotkey to Reload E2B (if E2B menu not working)
  405. ####()/%grub%/hotkey [Ctrl+F8] "map --unhook ;; map --unmap=0:0xff > nul ;; root (bd)/ > nul ;; chainloader /grldr > nul ;; boot" > nul

  406. # F11 boots to an ISO
  407. ###()/%grub%/hotkey [F11] "(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul

  408. # F8 will always reload Main Menu (quick)
  409. ###()/%grub%/hotkey [F8] "set MFOLDER=/_ISO/MAINMENU && configfile (md)0xa000+0xA0" > nul
  410. # or F8 will re-enumerate all files and load Main Menu
  411. ###()/%grub%/hotkey [F8] "configfile (bd)/%grub%/menu.lst" > nul

  412. # F7 to boot from internal HDD
  413. ###()/%grub%/hotkey [F7] "map (hd0) (hd1) && map (hd1) (hd0) && map --hook && chainloader (hd0)+1 && rootnoverify (hd0) && boot" > nul

  414. # Make the F1 key show the Help Menu from any menu (uncomment 3 lines below) - you can put your own help file in \_ISO\F1.cfg
  415. ###if exist /_ISO/F1.cfg   ()/%grub%/hotkey [F1] "configfile /_ISO/F1.cfg" > nul && goto :f1skp
  416. ###if exist /%grub%/%LANG%/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/%LANG%/F1.cfg" > nul && goto :f1skp
  417. ###if exist /%grub%/ENG/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/ENG/F1.cfg" > nul
  418. :f1skp

  419. # Clear only one global hotkey setting (can be used in .mnu files or .hdr and .lst files)
  420. # e.g. clear F9 global hotkey
  421. ###()/%grub%/hotkey [F9] > nul

  422. # Clear all global hotkeys and reload the hotkey program (only really useful in other menus - e.g. in $CONFIG\CONFIG.mnu files)
  423. ###()/%grub%/hotkey -u > nul && ()/%grub%/hotkey -A > nul

  424. #Load UTILITIES Menu using F6 key
  425. ###()/%grub%/hotkey [F6] "set MFOLDER=/_ISO/UTILITIES && set HDG=Utilities Menu && /%grub%/SubMenu.g4b" > nul


  426. # ---- HIDE PAYLOAD MENU ENTRIES -----

  427. # To hide a menu entry, create a .txt file of same filename as ISO and use:   iftitle [if exist SECRET] here is title\nhere is help text
  428. # Then define Ctrl+F9 and Ctrl+F10 hotkeys (password is E2B)
  429. # Read more:
  430. # Ctrl+F9 - Clear menu with wallpaper and prompt user for password in German language, switch to blue wallpaper if success
  431. ###()/%grub%/hotkey [Ctrl+F9] "call Fn.70 3 ;; clear && echo -e -n \nPasswort:\x20 && set SECRET= ;; call Fn.5 0 128 ;; password E2B > nul && set SECRET=1 && splashimage /_ISO/docs/Templates/blue/blue.bmp.gz ;; configfile (md)0x3000+0xA0" > nul
  432. # Ctrl+F10 - Reset pwd and background, reload menu
  433. ###()/%grub%/hotkey [Ctrl+F10] "set DONEMENU= ;; configfile /menu.lst" > nul

  434. # ----   OTHER SETTINGS ----
  435. # XP ISO UNATTEND.TXT SUPPORT - if PICKAUTO is set then user will be asked to select \_ISO\WINDOWS\XP\*.AUTO files for Unattend.txt\Winnt.sif selection
  436. # create-your-website-with-blocks/add-payload-files/windows-install-isos/unattended-windows-installs/
  437. # .SIF file must have OemPreinstall=No or will get 'missing file' errors
  438. ###set PICKAUTO=YES

  439. # Use if black screen on boot to XP Setup (some Dell systems with buggy BIOSes need this) - if 0 does not work, try 1-9  (default is -1)
  440. ###set E820=0

  441. # ---- ZALMAN\IODD HDD ENCLOSURE -----
  442. # If file extension is .ISO, then ask user how to run it (e.g. run as if .ISOPE or .ISOWINVH, etc.)
  443. # Use if you have a Zalman Virtual CD USB HDD caddy you may want to keep all .iso files as .iso (tip: use a .txt file with a help entry to remind you which one works best!)
  444. ###set ISOASK=1

  445. # --- MENU SORTING ---
  446. # Turn off alphabetical sorting of menu entries (speeds up enumeration of menus slightly - NOT recommended!) - note multiple wallpapers won't work if you set this!
  447. ###set NOSORT=1

  448. # --- SPEED UP MENU LOADING IF MANY ISO/IMGPTN FILES IN MENU FOLDERS ---
  449. # Disable volume information of ISO file displayed in menu help text and do not warn user if file is not contiguous
  450. ###set QMENU=1

  451. # --- CHECK BIOS FOR 137GB BUG ---
  452. # Do not check the BIOS to see if it has the >137GB USB disk access bug (e.g. as found on some Asus EeePCs) Tip: try formatting the drive using RMPrepUSB first!
  453. # Useful to suppress warning when your E2B drive is >137GB but E2B is on the first partition which is <137GB so it will work correctly
  454. ###set CHECKBIOS=

  455. #  ----- REDUCE MEMORY USAGE -----
  456. # This disables the loading of batch file modules into memory for faster execution (so MOD=1 may slower - not recommended)
  457. # If too many files or variables cause grub4dos to crash then uncomment the next line
  458. ###set MOD=1

  459. # Use HLT instruction to reduce CPU cycles whilst waiting for keypress (stops CPU from getting too hot) - this also prevents animations and tunes from playing
  460. ### write --bytes=1 0x8205 0x20 > nul

  461. # --- DEBUG MODE -
  462. # Displays boot timings just before Main Menu is displayed - use for diagnosing/measuring slow boot times (can also press ! key during boot to show times)
  463. ###set SHOWTIME=1
  464. # Always pause after menu file enumeration - Note: instead of using ENUMWAIT, just press the SPACEBAR during file enumeration and it will pause before it displays the menu
  465. ###set ENUMWAIT=1

  466. # --- PROMPT USER FOR FASTER BOOT ----
  467. # Add 3 lines below to prompt for faster boot option (for BIOSes with poorly-written and slow USB drivers) (will need to adjust menu size)
  468. ###set ask=
  469. ###if not exist DONEMENU set /p:3 ask=Speed up booting (no wallpaper or unifont not loaded) (Y/N) :
  470. ###if not exist DONEMENU if /i "%ask%"=="Y" set NOUNIFONT=1 && set GFX=none && set noitems=16 && set tophelp=18 && set HBTM=2300

  471. # --- STAMPS and ANIMATION ---
  472. # see for more details
  473. # Specify stamps to overwrite the wallpaper. Format: set STAMPn=type=x=y (filespec), type: 0=normal, 0x80=transparent background
  474. ###set STAMP1=0x80=584=0   /_ISO/docs/Templates/Animate/easy2boot_stamp.bmp
  475. ###set STAMP2=0x80=680=160 /_ISO/docs/Templates/Animate/E2B.bmp
  476. ###set STAMP3=0x80=620=160 /_ISO/docs/Templates/Animate/LadyMorgana.bmp
  477. ###set STAMP4=0x80=580=380 /_ISO/e2b/grub/E2BPlate.bmp

  478. # ANIMATE - displays a sequence - first file must end in 01.xxx (can be compressed bitmap using gzip or LZMA) - must use .bmp or .jpg as extension
  479. # trans=transparent, infinite=animate on menu or add 1-15 for number of cycles, disable playing menu type=0x0
  480. # 18 delay units = 1 second, x and y in pixels, last = last frame number in sequence 01.xxx-99.xxx or 001-255.xxx
  481. ###set trans=0x80 && set infinite=0x10
  482. # display sequence on menu (with transparent background)
  483. ###set /A type=%infinite% + %trans% > nul
  484. # play sequence 3 times immediately
  485. ###set /A type=%trans% + 3 > nul
  486. ###set delay=0x3
  487. ###set last=09
  488. ###set x=650
  489. ###set y=40
  490. # use (bd) for boot drive or (hd0,0), so that if root drive changes it continues to load from correct drive.
  491. ###set FILE=(fd3)/frame_0001.bmp
  492. ###set ANIMATE=%type%=%delay%=%last%=%x%=%y% %FILE%
  493. ###set trans= && set infinite= && set delay= && set type= && set last= && set y= && set x= && set FILE=
  494. # If using a floppy image, we must specify the location of the image
  495. # The floppy disk image is loaded into memory and so the animation is faster and does not constantly access the disk
  496. # ANIMFD3 is a floppy disk image file containing the files - it is mapped to fd3 by E2B
  497. ###set ANIMFD3=/_ISO/docs/Templates/Animate/E2B_GIF.ima

  498. # remove the animation that is currently playing
  499. ###splashimage --animated=0

  500. # ----- SOUND (BEEPS and TUNES) ------

  501. # beep middle C 3 times with 1/5 second delays (Frequency in Hz   Duration in milliseconds), freq.=0 for delay. play=255 for infinite loop
  502. ###beep play=3 --nowait 262 200 0 200

  503. # call an E2B batch file to play tune each time main menu is loaded
  504. ###call /_ISO/docs/Tunes/Tetris_Loop.g4b

  505. # call an E2B batch file (if F8 pressed to reload Main menu, do not play tune again)
  506. ###if not exist DONEMENU call /_ISO/docs/Tunes/Tetris_Loop.g4b

  507. # ------ SET VARIABLES MYMEMMB and MYDISKGB ----------

  508. # SIZE_E2B and SIZE_HD1 are already available

  509. # set B64 text and MYMEMMB for size of memory
  510. ###set /a M=*0x8298 & 0xffffffff>>10+1 > nul && set /a M1=*0x82c0>>10+1 > nul
  511. ###set /a M=%M% + %M1% > nul ;; set MYMEMMB=%M% ;; set M= ;; set M1=

  512. # set GB4 variable if 4GB+ of memory present
  513. ###set /a M=*0x8298 & 0xffffffff>>10+1 > nul ;; set /a M1=*0x82c0>>10+1 > nul ;; set /a M=%M% + %M1% > nul ;; if %M%>=4096 set GB4=1 ;; set M= ;; set M1=

  514. #get size of boot device hd2 (second internal hard disk) in GB in MYDISKGB (allow for 2TB drives - max grub4dos +ve number is 0x7FFFFFFFFFFFFFFF 1TB)
  515. errorcheck off
  516. geometry (hd2) > (md)0x333+1 ;; cat --locate=/512 --replace=\x00 (md)0x333+1 > nul ;; cat --locate=nt/Size= (md)0x333+1 > nul
  517. set /A a=%?%+8 > nul ;; cat --skip=%a% (md)0x333+1 | set a= ;; set /a a=%a%>>21 > nul
  518. if %a%<=0 set a= ;; set MYDISKGB=%a% ;; set a=
复制代码

这是国外的一个软件easy2boot配置文件,我只是加载了字体而已
回复

使用道具 举报

4#
发表于 2023-5-17 20:26:08 来自手机 | 只看该作者
把菜单贴上来
回复

使用道具 举报

3#
 楼主| 发表于 2023-5-17 20:20:14 | 只看该作者
2011yaya2007777 发表于 2023-5-17 19:47
菜单字符前面有空格及Tab。不要使用Tab。调整空格数量即可。

不是空格,是居中显示
回复

使用道具 举报

2#
发表于 2023-5-17 19:47:03 来自手机 | 只看该作者
菜单字符前面有空格及Tab。不要使用Tab。调整空格数量即可。

点评

不是空格,是居中显示  详情 回复 发表于 2023-5-17 20:20
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-26 04:09

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表