• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1005
  • Last Modified:

Blink applications in Task bar

How can I blink the title of applications that minimized in Taskbar? such as Yahoo messanger?

Motaz
0
Motaz
Asked:
Motaz
1 Solution
 
simonetCommented:
Here it goes:

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.


*********
yours,

Alex
0
 
MotazAuthor Commented:
Thanks Alex simonet,

Motaz
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now