Jump to content

How to Control the Timer?


Recommended Posts

I need to write an app to start a timer and then close it...seems easy enough, but I have issues that I am not sure how to handle. I am desperately hoping someone can give me some ideas that I can persue.

The concept is this: A phone agent answers a call from a customer. At that point, a TIMER begins to count the seconds the agent is one the phone. Once the agent releases the call, the timer stops until the next call. I don't see that any process [exe,etc.] gets started/stopped for the call... I see the Title change from "IP Agent - xxxxxx" to the phone number, and then back to "IP Agent - xxxxxx" when the call is over.

Flow:

Answer call - START TIMER

At 5 minutes - timer turns YELLOW, possible with a message to agent

At 10 minutes - timer turns RED, with a message

Call is Released - TIMER stops

..... process begins at next call agent takes

How to STOP/CLOSE/Exit the timer box or window????

NOTE: There are aspx pages that are loaded before and after call...can I check for them?

Call Answered - http://ssdr.dip.com/orderentry/ipagent_answer.aspx?vdn=%v&ani=%

Call Released - http://ssdr.dip.com/tcode_complete.aspx

I've started with something like this just for testing:

SplashTextOn("Timer","0 Seconds",125,25)

$BeginTime = TimerInit()

$CountTo = 10000

$SecondsLapsed = 0

While $SecondsLapsed<$CountTo

$TimeDifference = TimerDiff($BeginTime)

$SecondsLapsed = Round($TimeDifference/1000,0)

ControlSetText("Timer", "", "Static1", $SecondsLapsed & " Seconds")

Sleep(1000)

WEnd

Any ideas, suggestions, sample scripts...please help if you can!!!!

Edited by deef99
Link to comment
Share on other sites

The concept is this: A phone agent answers a call from a customer. At that point, a TIMER begins to count the seconds the agent is one the phone...

Flow:

Answer call - START TIMER

At 5 minutes - timer turns YELLOW, possible with a message to agent

At 10 minutes - timer turns RED, with a message

You work at Dell, don't you?!

Why can't you people just let the agent take whatever time is required to REALLY help the customer?!

Sheesh... :idea:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

NO....I do NOT work at DELL !!!!!

And that's not a helpful answer... shame on you.

Frankly, serves you right that AAA won't return your calls...

Edited by deef99
Link to comment
Share on other sites

The ASPX pages are easy to check for with the _IE* functions. See _IEPropertyGet() with "locationurl" in the help file.

:idea:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...