Flashing window when minimized :(
FlashWindow(Application.Handle, True);
If that doesn't work, try this unit (all it does is to import FlashWindowEx from User32.DLL):
unit WinFlash;
interface
uses windows;
type
TFLASHWINFO = packed record
cbSize:UINT ; //use sizeof function to get size of this structure
hwnd:HWND ; //handle of window to flash (Use application.handle for taskbar button)
dwFlags:DWORD ; //see constants below
uCount:UINT ; //number of times to flash
dwTimeout:DWORD ; //time to flash in milliseconds
end;
PFLASHWINFO = ^TFLASHWINFO;
const
user32 = 'user32.dll';
//dwFlag settings
FLASHW_STOP = 0; //Stop flashing. The system restores the window to its original state.
FLASHW_CAPTION = 1; //Flash the window caption.
FLASHW_TRAY = 2; //Flash the taskbar button.
FLASHW_ALL = 3; //Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
FLASHW_TIMER = 4; //Flash continuously, until the FLASHW_STOP flag is set.
FLASHW_TIMERNOFG = 12; //Flash continuously until the window comes to the foreground.
function FlashWindowEx(pfwi: PFLASHWINFO): BOOL; stdcall;
implementation
function FlashWindowEx; external user32 name 'FlashWindowEx';
end.