On or Off Selection button to send email or not from script.

Use this forum to request and discuss features you would like to see added to Ascendis Caller ID.
Post Reply
jt

On or Off Selection button to send email or not from script.

Post by jt »

I have a need to manually select to over ride send email or not. It would be nice feature to have something that you could just activate to send email or not. In another words with a button to activate the script or not.

I realize you can create a DWS script, on days, times, etc... But unfortunately that script would execute everytime a call comes in.

I would like to have something to overide the script such as a master button press enable/disable so the scripts to send the email or not.

I'm sure there would be ways around this with DWS. But a quick button click would be greate.

Appreciate any input on this.

JT
Bill Root
Site Admin
Posts: 1025
Joined: Mon Jan 19, 2004 1:29 pm
Location: Perrysburg, OH
Contact:

Re: On or Off Selection button to send email or not from scr

Post by Bill Root »

Hello JT,

Thank you for sharing your idea. To clarify, are you asking for a button or something similar that will enable or disable a particular script? Or all scripts? Or the "send mail" command? Or the "send mail" command in a particular script?

I assume that you're not looking for a confirmation window at the start of a script that asks whether you want to run the script...

I don't think there's a way to do what you're asking right now, but once I better understand it, I can think about how it might fit into a future version.

Finest regards,
Bill Root
Ascendis Software
JT

Paging options

Post by JT »

Sorry for not being that informative to my original wish request.

What would be nice, is to have a dialog box come and be able to select a start time and end time and what days of the week, you wish the paging options (default) be active.

I hope this explains it better.

Thanks! Great product.

JT
Bill Root
Site Admin
Posts: 1025
Joined: Mon Jan 19, 2004 1:29 pm
Location: Perrysburg, OH
Contact:

Re: Paging options

Post by Bill Root »

Hi JT,

Thanks for the clarification. I added this to the requested features list.

For now, you can use the following script and change the settings in the USER PARAMETERS section:

Code: Select all

/////////////////////////////////////////////////////////////////////////////
// This script sends email during the specified times and days
//
// Change values in USER PARAMETERS section as needed.  You must at least
// change FROM_EMAIL and TO_EMAIL.
//
// Please make sure your mail settings are correct on the Mail page of the 
// Options window.
//
// 02/13/05 WTR - created
/////////////////////////////////////////////////////////////////////////////

//LANGUAGE=DWS

/////////////////////////////////////////////////////////////////////////////
// CONSTANTS
//
// Don't change this section
/////////////////////////////////////////////////////////////////////////////

const SUNDAY    = 1;
const MONDAY    = 2;
const TUESDAY   = 3;
const WEDNESDAY = 4;
const THURSDAY  = 5;
const FRIDAY    = 6;
const SATURDAY  = 7;


/////////////////////////////////////////////////////////////////////////////
// USER PARAMETERS
//
// Change these values to match your needs
/////////////////////////////////////////////////////////////////////////////

// mail will be sent FROM this address
const FROM_EMAIL = 'myemail@myisp.com';

// mail will be sent TO this address
const TO_EMAIL   = 'mycellphone@mycellularprovider.com';

// mail will be sent on START_DAY thru STOP_DAY
const START_DAY  = MONDAY;
const STOP_DAY   = FRIDAY;

// mail will be sent on START_TIME thru STOP_TIME
const START_TIME = '8 am';
const STOP_TIME  = '5 pm';


/////////////////////////////////////////////////////////////////////////////
// CODE
//
// Don't change this section
/////////////////////////////////////////////////////////////////////////////

if &#40;DayOfWeek&#40;Date&#41; >= START_DAY&#41;  and &#40;DayOfWeek&#40;Date&#41; <= STOP_DAY&#41; and
   &#40;Time >= StrToTime&#40;START_TIME&#41;&#41; and &#40;Time <= StrToTime&#40;STOP_TIME&#41;&#41; then
begin
  SendMail&#40;
    FROM_EMAIL,
    TO_EMAIL,
    'Call from ' + CallInfo.Name + ' at ' + CallInfo.Number,
    'Call received on line ' + CallInfo.Line&#41;;
end;
Paste the script into the Script Editor window to customize and use it. The Script Editor is only available for 'Advanced' actions. If you have any questions, please ask.

Finest regards,
Bill Root
Ascendis Software
jtsoft
Posts: 10
Joined: Sun Nov 21, 2004 2:10 pm

Post by jtsoft »

:D Big Thanks!

JT
Post Reply