If you use SendWin with a background window, HotkeyNet tells the operating system to bring the window to the foreground. The operating system takes a long time to do this. But HotkeyNet doesn't wait. It sends your keystrokes immediately. If they are sent before the window arrives in the foreground, they won't be received by the window. To avoid this problem, add a Wait after SendWin. This is illustrated in the second example below.
If you use SendWin with a background window, you can use Restore at the end of the hotkey to put the original foreground window back.
SendWin is only one of several send modes. One of the others may be more suitable for your purpose. See Related Topics below for more information.