The problem is that my script is having a detection issue for the game window, where previously it didn't. Here are the weird symptoms.
- When the Loading screen for the game comes up, my script determines the game window is active - business as usual.
- Once the game loads in, the script no longer recognises the game window as being active. The context-sensitive hotkeys and other WinActive expressions are evaluated as False.
- If I relaunch the script manually at this point, all WinActive expressions magically start evaluating as True again and everything works fine.
1. my Winactive(identifiers) are correct, because the script does work - it just needs to be reloaded to do so. WindowSpy also concurs that none of the gaming window's identifiers have in fact changed.
This only started following a game patch, but I'm not sure what they could have changed to cause this. I can work around this by using a non-sensitive hotkey to reload the script but I'm very curious as to why this is happening and wondering if anyone has any thoughts on what might be going on here.
Dannii
*edit* I tried adding a non-context-sensitive hotkey but it simply doesn't work once the game has loaded. I have found if I use it while the loading screen is up, the script reloads and everything works fine. I'm so puzzled right now.
I'm starting to wonder Riot introduced anti-cheat/spam measures into their game because I have also found that - for example, using a hotkey to Send, {Enter} does not open the chat box in game, while using the actual Enter key does. Yet you can use the send command to Send, some text {Enter} once the chat box is already open and it sends just fine.