I've used _WINDOWHANDLE before. It's basically the same as the old-school method I applied using: FindWindowA
The INKEY$ is just a =there so anyone who tests it and sees the SetActiveWindow just won't register can easily quit using the keyboard.
At this stage I don't expect the SetActiveWindow to be the complete answer, but if I coded it wrong, I can't even test out its behavior.
Oh, I've seen that add CHR$(0) to the title, but I've never had a need to do so. This one gets the handle just fine, with or without it.
Ultimately what I'm looking for is a better way than the hack I created to activate alternate opened messenger windows, here: https://qb64phoenix.com/forum/showthread...71#pid8671
Pete
The INKEY$ is just a =there so anyone who tests it and sees the SetActiveWindow just won't register can easily quit using the keyboard.
At this stage I don't expect the SetActiveWindow to be the complete answer, but if I coded it wrong, I can't even test out its behavior.
Oh, I've seen that add CHR$(0) to the title, but I've never had a need to do so. This one gets the handle just fine, with or without it.
Ultimately what I'm looking for is a better way than the hack I created to activate alternate opened messenger windows, here: https://qb64phoenix.com/forum/showthread...71#pid8671
Pete