a same shortcut do different things。

i want to set a keyboard shortcut, but this shortcut in different active app, it will do different things, what can i do?

eg.
set a shortcut CTRL+W
if the A Window is at the front, it will send shortcut “CTR+H” to A window;
if the B Window is at the front, it will send shortcut "CTRL+SHFT+E" to B window.

Since nobody answers... that should go smoothly. With BTT you can define app specific shortcuts. Same shortcut, different action. The prerequisite is that "A Window" and "B Window" do not belong to the same app.

1 Like

thanks!

if i want to set some conditions to the shortcut trigger, how can i do?

eg:
if the app's menu has a sub menu item named "XXXXX", and this sub menu item is checked. when i press key ESC, it will send COMMAND+W.

I'm not sure if that works with BTT. But you can do these kind of macros with Keyboard Maestro.