1. By itself. 2. With If. See If for information about its parameters.
<Hotkey F1> <If ActiveWinIs wow1> <SendLabel w1> <Key 1> <Else If ActiveWinIs wow2> <Sendlabel w2> <Key 2> <Else> <SendFocusWin> <Key %Trigger%>
If EndIf