Java program: Unable to bring window forward on Windows 10
In the IDE (tested with 2.0.5) everything works as expected, even when the script is run from command line.
Using the same workflow in a Java program, only the first focus works. All following only make the icon in the taskbar blinking.
I currently have no idea, what causes the different behavior, but will try to find out.
2.0.6 will have a different implementation of the App class. I will check its behavior.
A workaround is to disable the taskbar icon flashing completely: https://www.thewindowsclub.com/disable-flashing-taskbar-buttons-windows
Be sure to set both values to 0 (zero).
I have made the changes to both registry entries to set them to zero and confirm that this does fix the issue for me as a workaround.