deef99 Posted May 12, 2010 Share Posted May 12, 2010 (edited) 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 TIMERAt 5 minutes - timer turns YELLOW, possible with a message to agentAt 10 minutes - timer turns RED, with a messageCall is Released - TIMER stops..... process begins at next call agent takesHow 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.aspxI've started with something like this just for testing:SplashTextOn("Timer","0 Seconds",125,25)$BeginTime = TimerInit()$CountTo = 10000$SecondsLapsed = 0While $SecondsLapsed<$CountTo $TimeDifference = TimerDiff($BeginTime) $SecondsLapsed = Round($TimeDifference/1000,0) ControlSetText("Timer", "", "Static1", $SecondsLapsed & " Seconds") Sleep(1000)WEndAny ideas, suggestions, sample scripts...please help if you can!!!! Edited May 12, 2010 by deef99 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 12, 2010 Share Posted May 12, 2010 Maybe WinGetTitle or WinGetText can be used? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 12, 2010 Share Posted May 12, 2010 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 TIMERAt 5 minutes - timer turns YELLOW, possible with a message to agentAt 10 minutes - timer turns RED, with a messageYou 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... 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 More sharing options...
deef99 Posted May 12, 2010 Author Share Posted May 12, 2010 (edited) 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 May 12, 2010 by deef99 Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 12, 2010 Share Posted May 12, 2010 The ASPX pages are easy to check for with the _IE* functions. See _IEPropertyGet() with "locationurl" in the help file. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now