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 Windows 7 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 for2: how to create an on-screen alert on top of everything
Thread Forum
Create a theme which changes windows logon Screen Themes and Styles
Can I create a shortcut to change screen resolution? Graphic Cards
Is there a site specific alert you can create? Chillout Room
Screen Saver Settings Shortcut - Create Tutorials
On-Screen Keyboard Shortcut - Create Tutorials
Screen Resolution Shortcut - Create Tutorials
Trying to create partitions (with screen shot) 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 06:52 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33