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.Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
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.)Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
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.
"SetBackgroundFocusDelays" has no effect on SendWinX. Those delays only affect send modes with "F" in their names like SendwinMF and SendWinSF.Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
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.Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
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.)Originally Posted by 'Madman_Max',index.php?page=Thread&postID=120070#p ost120070
Connect With Us