rabhatt 0 Posted October 12, 2010 I need to measure my desktop application screen responses using timer functions. But it seems the timings are not proper. Any guidlines to use timer functions to measure screen response time. * Below functions are recorded automatically - WinWait("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") If Not WinActive("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") Then WinActivate("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") WinWaitActive("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") * I'm trying to place start timer and end timer like this before and after above recorded code for synch - $begin = TimerInit() WinWait("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") If Not WinActive("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") Then WinActivate("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") WinWaitActive("Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]","") $dif = TimerDiff($begin) BUT STILL THE TIMINGS ARE NOT CORRECT. PLEASE HELP. Share this post Link to post Share on other sites
wakillon 404 Posted October 12, 2010 Use AutoIt Tag for post code and Start by simplify your script $_Title = 'Aspen Basic Engineering V7.2 - aspenONE - Explorer - [Folder View: New Folder]' $begin = TimerInit() WinWait($_Title,"") If Not WinActive($_Title,"") Then WinActivate($_Title,"") WinWaitActive($_Title,"") $dif = TimerDiff($begin) And what's not working ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites