Writing UDERMOD for Boot TIME MACRO

Hi Everyone,

Can anyone help me writing UDERMOD for below operation:

when WLED boots, it looks for BOOT PRESET and implement the PRESET ID then after say 5/10 seconds WLED check for TIMED MARCO (approx time WiFi takes for connectivity) and if any TIMED MACRO is assigned WLED should load TIME MACRO if not continue with Boot Preset.

Thanks