Quote Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
I cant seem to get HotkeyNet to work reliably. The background window is dropping characters.
I know it doesn't send keystrokes reliably to a Warhammer window that's in the background. What I'm asking people to do here is try to figure out the exact conditions under which it works until some second set of conditions stop it from working. If we can identify those two sets of conditions, then maybe I can modify the program so it keeps those conditions permanently established for itself.

Quote Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
Frequently, the background window received the keystroke, but fails to execute it until I manually click on the background window or press another hotkey.
That's a good observation. The next step is to distinguish whether it's really failing to execute or whether it's executing but the screen isn't getting redrawn. You can see the difference if your command makes the character do something visible in the game and you watch it from the other character's screen. (SendWinX turns off screen redraws for a background window while it sends keystrokes to the background.)

This may seem like a meaningless distinction but it's crucial for me know whether I have to worry about the keystroke getting received by the game or whether I have to improve the part of the code that forces a screen redraw.

Quote Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
<SetBackgroundFocusDelays 15 50>
"SetBackgroundFocusDelays" has no effect on SendWinX. Those delays only affect send modes with "F" in their names like SendwinMF and SendWinSF.

Quote Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
<SetPriority High>
Interesting idea. The way SendWinX works, it raises the background window to the foreground in the normal way, except it turns off screen redraw for a moment so there's no delay while the video card moves windows around. When a window gains the foreground, the operating system elevates its thread priority automatically, so the operating system is already doing this also.

Quote Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
If I alternate pressing F1 and F2, the background window will work correctly, open either the backpack or help window out of sequence, or do nothing at all.
Thanks for this observation. I'll look at this. (I suspect the out of order part may be due to delayed redraws. In other words, the keys may be doing their jobs immediately, but you don't see the results until later.)