@guy038
Yeah, macros can’t interact with plugin dialogs - that’s a Notepad++ limitation.
MultiReplace might work as an alternative
What it can do: Instead of counting one regex at a time via a macro loop, MultiReplace lets you run all your regexes against the file in a single “Find All” operation, No macro gymnastics needed.
Here’s the quick rundown:
Open MultiReplace, right-click list header → enable “Find Count”
Add your regexes (with Regex checkbox enabled), or import via CSV:
Selected,Find,Replace,WholeWord,MatchCase,UseVariables,Extended,Regex,Comments
1,"[\x{0000}-\x{007F}]","",0,0,0,0,1,Basic Latin
1,"[\x{0080}-\x{00FF}]","",0,0,0,0,1,Latin-1 Supplement
Open Total_Chars.txt, click “Find All”
The Find Count column shows all matches at once. Works with read-only files.
The catch: it’s batch, not interactive. And the counts aren’t in CSV export yet - you’d copy them manually. (That feature is on my list right now.)
Cheers