Need Help to write USERMOD for Boot Timed Macro

Hi Everyone,

Can anyone help me writing USERMOD 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.

or can anyone suggest how to write USERMOD for WLED