← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #698000]: [2.0.5] Java program: Unable to bring window forward on Windows 10

 

Question #698000 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698000

Description changed to:
***** accepted as bug: follow up on GitHub: https://github.com/RaiMan/SikuliX1/issues/464
-------------------------------------------------------------

***** workaround:
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 am trying to bring an application that is already running into the foreground on Windows 10 using Java.  Here is the code I am using:

App app = App.open("\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\"");
app.focus();

This causes the Notepad++ application to blink in the taskbar, but it
doesn't bring it to the foreground.  What am I missing?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.