<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 12, 2015 at 4:25 PM, Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">​Hi,</div><div style="font-family:arial,helvetica,sans-serif">I am trying to work out how to flash the taskbar icon in Windows 7, like Skype does, pragmatically. I have googled, and the closest I found was FlashWindowEx, but that doesn't actually flash the icon, just the form window.</div></div></blockquote><div><br></div><div><br></div><div>If your app is not the foreground app, SetForegroundWindow will flash the taskbar icon.</div><div><br></div><div>On a new project, drop a TTimer, paste this, run, and minimize your app.</div><div><br></div><div><br></div><div><div>procedure TForm1.Timer1Timer(Sender: TObject);</div><div>begin</div><div>  SetForegroundWindow(Form1.Handle);</div><div>end;</div></div><div><br></div><div><br></div><div>see msdn:</div><div><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms633539(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/ms633539(v=vs.85).aspx</a><br></div><div><br></div><div>"<span style="color:rgb(69,69,69);font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif;font-size:14px;line-height:20.0060005187988px">An application cannot force a window to the foreground while the user is working with another window. Instead, Windows flashes the taskbar button of the window to notify the user."</span></div><div><span style="color:rgb(69,69,69);font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif;font-size:14px;line-height:20.0060005187988px"><br></span></div><div><br></div><div> </div></div><br></div></div>