Solved

Blink applications in Task bar

Posted on 2000-04-14
2
980 Views
Last Modified: 2012-06-22
How can I blink the title of applications that minimized in Taskbar? such as Yahoo messanger?

Motaz
0
Comment
Question by:Motaz
2 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 50 total points
ID: 2718621
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
 
LVL 7

Author Comment

by:Motaz
ID: 2718629
Thanks Alex simonet,

Motaz
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question