I am trying to gather response time for different events within outlook. I am currently running through an automated session of events such as sending an email and opening up someone elses calendar by using sendkeys. I would like to gather some sort of metrics between each of these events. For example lets say that i press the send key on an email, i would like to see how long it takes from that keyclick until it apears in my email box. For the calendar i would like to see how long it takes from me clicking ok for openeing up someones calendar until it actually apears. I thought about somehow using the system time and having it count until some event occurs, such as the focus window has certain text etc.. maybe using appactivate?
Any ideas for a function i could use to put into this code would be greatly appreciated.
I would look at AutoIt to handle this. It has much better ability to determine the state of a window and I believe it provide date/time functions as well.