Code: Select all
//LANGUAGE=DWS
if (CallInfo.Rings = 2) and (CallInfo.Line = Ambulance) then
begin
const FIREFOX='C:\Program Files\Mozilla Firefox\firefox.exe'; // Open FireFox
RunWait(FIREFOX, 'http://www.bing.com/maps/?v=2&cp=' + CallInfo.County + '&lvl=17&dir=0&sty=h&sp=&where1=' + CallInfo.SpeakName);
RunWait(FIREFOX, 'recv.Call.php');
end;
if CallInfo.Line = Fire then
begin
const FIREFOX='C:\Program Files\Mozilla Firefox\firefox.exe'; // Open FireFox
RunWait(FIREFOX, 'recv.Call.php');
end;
Instead of adding another modem to the same computer and all the problems that could come from that, they made a decision to buy another computer if everything goes well.
The plan is to network both computers and share the 2nd monitor that is attach to the Ambulance system ( dual monitors )
The Fire Dept. would be the "server" and the ambulance would be the "client" and when a call comes in for the Fire Dept. it would display thru the 2nd screen on the ambulance computer.
So far it works perfect and using the script action on the client computer, but not all the action are needed for each departments. Looking at the script above we can't get the CallInfo.Line to work it says unknow line but the line description is right we even try CallInfo.RawLine and still no results. So what am I missing?