Forum

Please or Register to create posts and topics.

Need help regarding Master Password, Animation and Tunes support in Grub4EFI

Hi..Steve

First lots of thanks for providing Grub4EFI support in E2B. I am very excited to enjoy Beauty, Simplicity and Unique features of E2B in modern UEFI mode. I am use following .mnu file for Master Password, Animation and Tune during startup of E2B just before the enumeration of Payloads and loading of E2B Main Menu.

E:\_ISO\MAINMENU\!!CONFIG\$pwd.mnu -

clear
#Check if CAPS LOCK is on - use 0x20 for NUM-LOCK or 0x10 for SCROLL-LOCK, 0x08 for ALT, 0x04 for CTRL, 0x02 for L-SHIFT, 0x01 for R-SHIFT
calc *0x417 & 0x0f ^ 0x0c > nul || set DONEPWD=1 && pause --wait=5 PLEASE CHANGE YOUR KEYBOARD.IT IS NOT WORKING PROPERLY...
calc *0x417 & 0x0f ^ 0x04 > nul || call /_ISO/SMART/GUEST_SW.g4b
call /_ISO/docs/Tunes/MissionImpossible_Loop.g4b
echo
echo WELCOME KRISHNA
echo Let's do something special!
echo !BAT > (md)0x300+1
echo -e password debugdotdebug \> nul \|\| configfile (md)0xa000+0x50 >> (md)0x300+1
if not exist DONEPWD call (md)0x300+1
set DONEPWD=1
splashimage --animated=0
splashimage %MMWBMP%
map --mem --read-only /_ISO/SMART/DNA.ima (fd3)
map --hook
splashimage --animated=0x90=1=120=800=350 (fd3)/DNA_orbit_animated_frame_0001.bmp
call Fn.70 3
clear

 

What modification I have to do in $pwd.mnu so that it will also work in Grub4EFI mode in exactly the same way it work in Grub4dos mode ?

Thanks & Regards...

Unfortunately, we cannot detect the keyboard shift/alt/ctrl status in grub4efi.

You will have to use more normal methods - e.g. password  or  normal keypress

call Fn.73 3 ;; call Fn.20

waits 3 seconds then gets a key if one was pressed

%@retval% = key code

in efi 0xFFFFFFFF = no key

in mbr -1 = no key  (= 0xFFFFFFFFFFFFFFFF)

for simple key codes you can use

set /A key=%@retval%

if "%key:~-4,4%"=="FFFF" echo no key was pressed

if %key%==0x0d echo ENTER was pressed

 

 

devdevadev has reacted to this post.
devdevadev

Multi-buy discount 10%

eBooks (in PDF format)

Easy-to-read eBooks are available in PDF format (each eBook is over 100 pages) – rated 4.5/5 stars.
Learn the secrets of Legacy and UEFI USB booting and then make your perfect multiboot USB drive.
E2B eBook #1 includes instructions on how to remove the E2B 5-second start-up delay blue screen.

E2B is unique in that it uses partition images which allows you to directly boot from Secure Boot images (no need to disable Secure Boot or run MOK manager or modify your UEFI BIOS).

Most eBooks are over 100 pages long, contain original content (not AI generated!) and step-by-step exercises which are suitable for both the beginner or the more experienced user.
Customer reviews are located at bottom of each eBook product page and multi-buy discounts are available when you buy more than one eBook. Please also visit RMPrepUSB.com and the E2B Forum.
Subscribe to my blog for the latest news, tips, USB boot articles and free eBook updates.