Topic: Easy2Boot

Date 09/04/2016

By SteveSi

Subject Re: Re: Suggestion: add Option to clear/empty keyboard buffer before showing MAIN MENU?

Here is the contents of a SoakKeys.g4b batch file
!BAT
# soak up any previous key presses
:loopk
# Check for key in BIOS keyboard buffer
call Fn.20
# Call Fn. 19 to get the key character if present
if not %@retval%==-1 call Fn.19 && goto :loopk

I will include \_ISO\e2b\grub\SoakKeys.g4b in the next version of E2B. To use it, add
call /_ISO/e2b/grub/SoakKeys.g4b
anywhere that you want all key presses to be absorbed (e.g. after an animation 'play' command).

Back