Sign in to follow this  
Followers 0
rabhatt

Need to measure UI screen response using timer

2 posts in this topic

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



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.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
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
Sign in to follow this  
Followers 0