Thx Mespotine!
Number_of_presets = 0 here though, with the following code:
Code:
reaper.SetExtState( "menubox_EXAMPLE", "preset1", "a bunch of data", true )
reaper_extstate_ini_path = reaper.GetResourcePath().."\\reaper-extstate.ini"
number_of_presets, _ = ultraschall.CountValuesByPattern("menubox_EXAMPLE", reaper_extstate_ini_path)
Am i missing something?