How to verdict if a window is a current focused window?

as if the Subject, thank you.

ThisWindow (Focused) Some Command

that’s ok, thank you very much.

I use “ThisWindow (Raised, Focused) Some Command”, why can’t it work correct?

It depends on what you mean by work correct? “ThisWindow (Raised, Focused) Some Command” will do “Some Command” if it is invoked in the context of a Raised and Focused window. If the window context is missing, nothing is done. You may want to try:

Pick ThisWindow (Raised, Focused) Some Command

No – this is what Current does – it implies the window in question has the focus. This is what you need to use.

– Thomas Adam