Solved

Blink applications in Task bar

Posted on 2000-04-14
2
976 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now