05-19-2024, 04:36 PM
@madscijr It works as expected on my PC.
I think the problem is you're clicking "b" while the program doesn't have focus, so it's not going to read that input and change modes on you.
Run the second program as you have it written, and click "a" to make it stay on top. Then click anywhere else you want and watch as that window remains on top of everything else.
Now open notepad, or your browser, or whatever, and hit "b".... Notice how you just typed a "b" on that newly opened app? It's where your input is being directed to.
Click back on the "always on top" program and hit "b". Maybe hit it twice for good measure to make certain that it catches that input. Watch the status change to "BACKGROUND".
At least, that's how it's working for me on Win 11.
I think the problem is you're clicking "b" while the program doesn't have focus, so it's not going to read that input and change modes on you.
Run the second program as you have it written, and click "a" to make it stay on top. Then click anywhere else you want and watch as that window remains on top of everything else.
Now open notepad, or your browser, or whatever, and hit "b".... Notice how you just typed a "b" on that newly opened app? It's where your input is being directed to.
Click back on the "always on top" program and hit "b". Maybe hit it twice for good measure to make certain that it catches that input. Watch the status change to "BACKGROUND".
At least, that's how it's working for me on Win 11.