rabhatt Posted October 12, 2010 Share 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. Link to comment Share on other sites More sharing options...
wakillon Posted October 12, 2010 Share 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 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