OK, excellent. That works. Now.... Phil's page isn't displaying anything (the parameters are translating correctly in the address bar though)... I'll get some lunch to restart my brain and have another look....
Thanks everyone for this so far.
Ian
Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854
| "Dirk Bulinckx"
<[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 17/08/2004 13:06
|
|
Make sure to include the path to the EXE that you want to execute in the alert.
In this case it should be the path to IExplorer.exe and have the HTM file as parameter in the commandline for IE.
Dirk.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
Looks great Phil. However.... weird problem. If I try to execute that (or even just iexplore.exe) nothing happens - the following appears in the log:
17 August 2004 12:55:13 ERR AlertEgine_DoAlert ( 134,COMD, 840) :File not found
If I execute (say) Notepad instead, it works fine. Or if I put your command (the iexplore etc command) on the start - run line, it works fine. Am I missing something obvious here?
Ian
Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854
| "Deadman, Phil"
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 17/08/2004 12:18
|
|
Deliberate mistake #1: example value for heading parameter should be
%p+is+%s
Cheers,
Phil.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Deadman, Phil
Sent: 17 August 2004 11:44
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
I don't know if this is of any use, but is offered for consideration!
I guess this only really works on Windows systems...? I've used IE as the
browser, but I guess you could use any browser.
Attached is an HTML file which uses _javascript_ to take 2 parameters out of
the query string - "heading" and "message".
You can configure an alert to run a command like:
iexplore.exe file:///c:/displaySaAlert.htm?heading=%p+is+%e&message=%e
This will open the page in IE and display the alert details (assuming the
HTML file is at the root of the C drive). You can change the styles in the
HTML to make the text bigger or a different colour.
Now there are some drawbacks!
You can't easily script the window to close itself (you can only close
windows you have spawned yourself). I've put a "blur" in after 10 seconds,
which will send this window to the back of the stack. If there is nothing
else up on the display then you'll still see this window. You could move the
window beyond the boundaries of the screen, which would effectively make it
disappear from view. Perhaps having the SA GUI maximised might assist in
hiding these alerts.
However, this means that you can end up with several of these windows open.
The only ways I can think of to close them down without doing each one
individually are (1) restart the box once a day (not always practical) and
(2) schedule a task to kill all iexplore.exe processes at regular intervals
(hoping it doesn't coincide with a real alert, and assuming the box isn't
used for any web browsing - in which case install a different make of
browser ;-).
Does that help any?
Cheers,
Phil.
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dirk Bulinckx
Sent: 17 August 2004 10:25
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
You write a tool for it :-)
Dirk.
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 11:10 AM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
Not quite sure what you mean by that. How would you do a POST as an alert?
Ian
Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854
"Dirk Bulinckx" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
17/08/2004 09:15
Please respond to
[EMAIL PROTECTED]
To
<[EMAIL PROTECTED]>
cc
Subject
RE: [SA-list] Message Popup
What could be done is to have:
* (1) webpage that accepts a POST
* (2) webpage that shows whatever is posted.
As alert do an HTTP POST and the "ops"has the webpage (2) as background on
his desktop.
Dirk.
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 10:10 AM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
Good idea, but it's still less than ideal for two reasons:
1) Font is way too small (this is for a plasma display screen)
2) Doesn't time out - the ops would need to connect to it and OK the message
every time.
I'm sure *somebody* must have written an app to do this - must be a simple
bit of VB (but I've forgotten all my VB skills!)
Ian
Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854
"Vogl, Tom" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
16/08/2004 21:19
Please respond to
[EMAIL PROTECTED]
To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc
Subject
RE: [SA-list] Message Popup
How about a NET SEND to itself?
Oki is proud to sponsor the "Oki European Challenge - 2005", the first truly democratic European yacht race.
For more information visit www.okieuropeanchallenge.com
