Solved

Blink applications in Task bar

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

19 Experts available now in Live!

Get 1:1 Help Now