473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

flash a window on toolbar

CW
I have written a chat program using asp.net. It basically has a hidden frame
that's constantly refreshed and uses document.write to write new messages to
the chat transcript frame. Because chat windows can be obscured either by
other browser windows or other applications altogether on the desktop, I am
trying to find a way to notify user that a new message has arrived, yet do
it unobtrusively.

I have currently used window.focus method whenever new messages are
received. If user running another application, IE icon on the toolbar would
flash as required. However, if user is merely in another IE screen, the
message window would pop on top and gain focus. This is a problem when user
may be typing away in another chat window. The newly focussed window would
take focus away from the chat window in which user is typing in messages.

Is there anyway to simply flash the IE icon on the toolbar without bringing
the actual IE screen on top? If not, I would appreciate any suggestions on
making user aware of new messages unobtrusively.

thanks in advance
Nov 18 '05 #1
3 2115
I am not sure if there is a .NET managed way to do it or not, but it is
easily done in Win32 API using the FlashWindowEx(REF s_flashinfo
str_flashinfo) function in user32.dll.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"CW" <CW@nospam.com> wrote in message
news:eU*************@TK2MSFTNGP12.phx.gbl...
I have written a chat program using asp.net. It basically has a hidden frame that's constantly refreshed and uses document.write to write new messages to the chat transcript frame. Because chat windows can be obscured either by
other browser windows or other applications altogether on the desktop, I am trying to find a way to notify user that a new message has arrived, yet do
it unobtrusively.

I have currently used window.focus method whenever new messages are
received. If user running another application, IE icon on the toolbar would flash as required. However, if user is merely in another IE screen, the
message window would pop on top and gain focus. This is a problem when user may be typing away in another chat window. The newly focussed window would
take focus away from the chat window in which user is typing in messages.

Is there anyway to simply flash the IE icon on the toolbar without bringing the actual IE screen on top? If not, I would appreciate any suggestions on
making user aware of new messages unobtrusively.

thanks in advance

Nov 18 '05 #2
Hi CW,

AS for the problem you mentioned, since web page based chat program is a
normal web application which can only use client side scripts in the client
browser, and client side scripts has very limited functions which can't
call most clientside resources such as file i/o, system apis or OTHER UI
interfaces. So our chat browser window can only call scripts to manipulate
the elements in the own document in its browser rather than control other
windows on the desktop or control the desktop's task bar.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Thats true, I hadn't realized this was a web based chat window.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:JV*************@cpmsftngxa10.phx.gbl...
Hi CW,

AS for the problem you mentioned, since web page based chat program is a
normal web application which can only use client side scripts in the client browser, and client side scripts has very limited functions which can't
call most clientside resources such as file i/o, system apis or OTHER UI
interfaces. So our chat browser window can only call scripts to manipulate
the elements in the own document in its browser rather than control other
windows on the desktop or control the desktop's task bar.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Danny Gopie | last post by:
Hello, i have a flash menu, but i want to open a javascript popup. How can i use this function that i'll use for TML in flash? <SCRIPT language="javascript"> <!-- //if (self != top)...
3
by: Kamyk | last post by:
Hello all! I would like to open a new window with a picture after clicking on a shrinked picture which is located on the main page. I want this new window to be exactly sized as original...
1
by: Speaker | last post by:
I have a following problem: Flash control (toolbar) has to be integrated in win32 application written in C. The problem is that application is not dialog window and hasn't MFC. If it were so,...
8
by: VB Programmer | last post by:
On some websites I've seen by clicking on a button or hlink a new IE browser window is spawned that does NOT have any toolbar (ie No back button, etc...) How can I do this on my ASPX page? ...
3
by: johnsonholding | last post by:
Here is the script I have in my page : <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "',...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
1
by: Socrates | last post by:
Hi - Have tried for half and hour to get this script to work: I am trying to close the parent window while opening a centred new child window I would be grateful if someone could correct the...
4
by: beerje | last post by:
I am trying to open several individual windows from a Flash 8 movie. Here is my script (so far): on (release)...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.