Jump to content
Sign in to follow this  
sstouk

Wait for Cursor ID:

Recommended Posts

sstouk

I have an application to automate and monitor the time it takes to display a result of search within its popup window.

When the search is started I can see nothing changes within the Active Window Info except the Cursor ID: value changes while the window is being filled-in with results.

Since this is the only information I have indicating that the search is complete (I need to time this event for a stress-test), I'd like to see if there is a way to capture it within AutoIt script... something like a WinWait() method but the one that captures the CursorID value change.

Is this possible?

P.S. Even if there's no such specific method, I could still loop the "while CursorID = xxx" ... but I need to know how I could use the CursorID value within the script for such purpose.

Thank You.

Edited by sstouk

Share this post


Link to post
Share on other sites
zfisherdrums

Hello sstouk,

Would this do the trick?

Dim $initialCursorID = MouseGetCursor()

; Initiate Test here...

Dim $start = TimerInit()
While MouseGetCursor() <> $initialCursorID 
    Sleep( 10 )
Wend
ConsoleWrite( TimerDiff( $start ) & @CRLF)

Zach...

Edited by zfisherdrums

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  

×