Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: how to create an on-screen alert on top of everything

02 Jul 2012   #1

Windows 7 Ultimate 32-bit
how to create an on-screen alert on top of everything

I want to monitor the status of my web server and mail server as seen by the WAN. The servers are running on machine A, with the monitoring shown on machine B on the same LAN, both running Win 7 Ult 32.

I have written a PHP script which resides on a remote server, that I invoke with a browser on B. It refreshes with a report every 5 minutes. It works OK. Occasionally it reports an error once, and then clears itself on refresh.

Now I want some kind of on-screen error alert that will be on top of whatever I am doing on B, preferably including the screensaver. I have misguidedly tried doing this with Javascript, which I now learn is banned from doing this. Some searches imply Win7 itself normally doesn't allow it either, but this can be over-ridden.

What is the best strategy ?

My System SpecsSystem Spec
05 Jul 2012   #2

Windows 7 Ultimate 32-bit
SOLVED how to create an on-screen alert on top of everyt

The trick is to use Javascript to change the window's title bar on error,
and have an AutoHotKey script to watch out for a window with the title "Server Error" and bring that window to the front:

SetTitleMatchMode, 1 ; title starts with literal string
While true ; loop continuously
IfWinExist, Server Error ; if the window with title starts with string exists
; switch off screensaver here
WinActivate ; bring the window found above to the top
Sleep, 10000 ; repeat after a pause of 10 seconds

This uses 0.03% of CPU time.
This doesn't break out of the screensaver.
There are AHK scripts that do something like that, but not sufficiently well documented to use yet.
My System SpecsSystem Spec

 how to create an on-screen alert on top of everything

Thread Tools

Similar help and support threads
Thread Forum
On-Screen Keyboard Shortcut - Create
How to Create an "On-Screen Keyboard" Shortcut in Vista, Windows 7, and Windows 8 Instead of relying on the physical keyboard to type and enter data, you can use the On-Screen Keyboard. The "On-Screen Keyboard" displays a visual keyboard with all the standard keys. You can select keys using...
Screen Resolution Shortcut - Create
How to Create a "Screen Resolution" Shortcut in Windows This will show you how to create or download a Screen Resolution shortcut that opens directly to the the screen resolution settings window. EXAMPLE: Screen Resolution NOTE: This is the same settings for when you right click on a...
Create a theme which changes windows logon Screen
Hi, I want to that "how to create a theme that changes windows logon screen" I know that one can manually change windows logon screen by making a new folder named info and again making a new folder in the info folder named backgrounds and then by putting a picture in backgrounds folder and name...
Themes and Styles
Is there a site specific alert you can create?
I know how to make a general alert in google alerts, but is there a way to make a site specific alert. Like, if for example, starts selling a "Jordan" shoe. Is there a way to get an alert when only that site has a specific word come up on their site? If so, how? Thank
Chillout Room
Trying to create partitions (with screen shot)
Hello, I'm trying to partition my 500 GB hard drive into 3 drives total. Right now, there is only a C Drive, but I want to divide that. When I go into the Windows 7 installation, this is what I see: Extend and new are grayed out, and even in disk...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:13.
Twitter Facebook Google+