title: Programatically suppress window from requesting attention on windows
body: <p>I made a program that automates some tasks in another program. The problem is, however, that the window that is being automated tries to gain focus occasionally. This means that even though the task was automated, I still get disturbed by the window popping up here and there.</p>
  
  <p>My question therefore is: How could I prevent this window from gaining focus or flashing on the taskbar?</p>
  
  <p>I'm using winapi for my project and I'm accessing it through java. I can therefore do many things with <em>hwnd</em>, as WinApi calls the window reference.</p>