10. Sending to Background Windows


Windows isn't designed to send keystrokes to background windows. HotkeyNet has to play tricks with the Windows API to make it happen, and the results are less than perfect.

Background sending can never work perfectly because Windows isn't designed to do it. It works with some keystrokes and some programs, but not all.

HotkeyNet offers two ways to send to background windows, SendWinM and SendWinMF.

SendWinM

SendWinM uses Windows’s WM_KEYDOWN and WM_KEYUP messages to deliver keystrokes. The advantage of SendWinM is that you don't have to adjust any settings. Just put it in a hotkey definition and if it works, it works.

SendwinMF

SendWinMF is a supercharged version of SendWinM. It takes additional steps to try to force windows to accept keystrokes while they are in the background. Its advantage is that it works with more programs than SendWinM does. Its disadvantage is that you usually have to adjust a setting to make it work properly.

You usually have to adjust the Background Focus Delays setting to make SendWinMF work properly.

You can make this adjustment on the Settings panel or with the SetBackgroundFocusDelays command. See SendWinMF for more information.

Note to World of Warcraft Players

As described above, SendWinMF inserts tiny delays. This is done only for technical reasons and the default values are too short to affect game play. If you are concerned that these delays might violate the rules in World of Warcraft, use SendWinM instead. SendWinM works fine for sending single keystrokes in WoW. SendWinMF is required only for chatline commands which may violate the rules for other reasons.


Next page


This page was last revised on March 29, 2008

 
INSTRUCTIONS


REFERENCE


World of Warcraft