Note: Before bug reporting, please make sure you have tried the latest (alpha) version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.
Describe the bug
I created two global keyboard shortcuts Ctrl+P and Ctrl+N:
Is there any resolution to this? I used to have four shortcuts (CMD+1 to CMD+4) for views in Keynote which I defined in system preferences, but decided after an OS reinstall to implement them in BTT instead (partly so that I wouldn't have to set them up every time I did a reinstall of Mac OS). The problem is if I bring up the clipboard viewer in Alfred and try to use the cmd+numeral to paste a result. For CMD+1 to CMD+4, it activates the BTT shortcut instead. I could add in another modifier key to my shortcuts but I've been using them for years so I'd rather not if I can avoid it.
Unfortunately I don't know of a way to detect when Alfred is active. Maybe you can ask in the Alfred forum whether there is a way to be notified when alfred is shown / hidden, then BTT could listen to that.
You have a few options, the easiest being setting Alfred's Appearance > Options > Focusing into Compatibility Mode, which will make Alfred operate like a standard window (instead of floating panel). BTT should be able to know Alfred is visible.
Secondly, you can make Alfred publish events when things happen by enabling his "Press Secretary". Take a look at my post here which discusses how it works, and what is posted:
I've implemented compatibility mode and it's resolved my problem immediately. It might be interesting for you to look at Alfred's 'press secretary', though, to see if it's useful in relation to BTT.