Need help regarding Master Password, Animation and Tunes support in Grub4EFI
Quote from devdevadev on 2021-08-20, 11:21 AMHi..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...
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...
Quote from SteveSi on 2021-08-20, 1:02 PMUnfortunately, 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
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