Jump to content

Need to measure UI screen response using timer


rabhatt
 Share

Recommended Posts

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...